-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AndroidStudio #34
Comments
Can you try building with Java 8? |
I can't select that and afaik Android doesn't support it. |
where do u select that? If I add these lines in my gradle file:
I get the following error:
|
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 |
ok, after successfully changing the jdk version to 1.8, I have the same error as with 1.7 :P |
The JDK for your Android SDK's may also need updating? http://stackoverflow.com/questions/24662801/bad-class-file-magic-or-version |
I have no idea what he means but it's about a preview and I'm using sdk 21 anyway. |
It seems that Java7 + RootTools 3.5 works. |
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... |
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 |
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. |
Can you try this one? https://drive.google.com/open?id=0B5Amguus3csDVVh2NWJaaFRwQkk&authuser=0 Change everything back to 1.7 |
With this file I still have the same error, sry (this time with com/stericson/RootTools/Constants.class). |
Oooops, hold on....Noticed on my end it's still using 1.8 |
Ok, this version is compiled against jdk 7 https://drive.google.com/open?id=0B5Amguus3csDRERybjQ2M1lMOWM&authuser=0 |
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 :) |
I'll make this the official release. This will work with 1.7 and above. I'm going to push this out now. |
I get the following error ( I guess it's a Java7 problem ):
The text was updated successfully, but these errors were encountered: