Giter Club home page Giter Club logo

Comments (18)

Stericson avatar Stericson commented on June 27, 2024

Can you try building with Java 8?

from roottools.

M1cha avatar M1cha commented on June 27, 2024

I can't select that and afaik Android doesn't support it.

from roottools.

Stericson avatar Stericson commented on June 27, 2024

Android does support it.

screen shot 2015-01-12 at 2 40 38 pm

from roottools.

M1cha avatar M1cha commented on June 27, 2024

where do u select that? If I add these lines in my gradle file:

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

I get the following error:

* What went wrong:
Execution failed for task ':app:compileDebugJava'.
> invalid source release: 1.8

from roottools.

Stericson avatar Stericson commented on June 27, 2024

You probably need to change your JDK location to point to 1.8.

Then you won't get that error.

Open Module settings -> SDK Location -> JDK Location

from roottools.

M1cha avatar M1cha commented on June 27, 2024

ok, after successfully changing the jdk version to 1.8, I have the same error as with 1.7 :P

from roottools.

Stericson avatar Stericson commented on June 27, 2024

The JDK for your Android SDK's may also need updating?

http://stackoverflow.com/questions/24662801/bad-class-file-magic-or-version

from roottools.

M1cha avatar M1cha commented on June 27, 2024

I have no idea what he means but it's about a preview and I'm using sdk 21 anyway.
Do u still use eclipse or u just don't have this error? In another topic I read, that u have to compile RootTools yourself using AS because the jar is not compatible.
Unfortunately I'm not able to compile it for some reason.(many different problems, I didn't invest that much time into it yet)

from roottools.

M1cha avatar M1cha commented on June 27, 2024

It seems that Java7 + RootTools 3.5 works.
So it should be a problem of the way you build the jars.

from roottools.

Stericson avatar Stericson commented on June 27, 2024

I know what's causing it. I have Java 8 and am compiling it against Java 8 and you are trying to use Java 7.

I'll look into compiling against Java 7, but in the meantime if you want to use the newest version of RootTools you need to configure your environment to work with Java 8.

Possibly check that JAVA_HOME is pointing to java 1.8 instead of java 7 as well...

from roottools.

M1cha avatar M1cha commented on June 27, 2024

Well I would use 1.8 if it would work, I set 1.8 in gradle, I'm using the 1.8 SDK and my java home is set to /usr/lib/jvm/java-8-oracle

from roottools.

Stericson avatar Stericson commented on June 27, 2024

One moment, I'm building a new version targeted to 1.7.

You problem is probably that your Android SDK's are configured to use 1.7 instead of 1.8.

from roottools.

Stericson avatar Stericson commented on June 27, 2024

Can you try this one?

https://drive.google.com/open?id=0B5Amguus3csDVVh2NWJaaFRwQkk&authuser=0

Change everything back to 1.7

from roottools.

M1cha avatar M1cha commented on June 27, 2024

With this file I still have the same error, sry (this time with com/stericson/RootTools/Constants.class).

from roottools.

Stericson avatar Stericson commented on June 27, 2024

Oooops, hold on....Noticed on my end it's still using 1.8

from roottools.

Stericson avatar Stericson commented on June 27, 2024

Ok, this version is compiled against jdk 7

https://drive.google.com/open?id=0B5Amguus3csDRERybjQ2M1lMOWM&authuser=0

from roottools.

M1cha avatar M1cha commented on June 27, 2024

yes this works thx a lot, I'd still like to know where I can change the android sdk compiler so I can use official releases :)

from roottools.

Stericson avatar Stericson commented on June 27, 2024

I'll make this the official release.

This will work with 1.7 and above.

I'm going to push this out now.

from roottools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.