Android Studio problem
Description:
I've added PokeGOAPI-Java-0.0.1-SNAPSHOT.jar to my Android Studio project. When I try to run the app, I get five errors. I compared my build.gradle with PokeScanner, which also uses the API and it's mostly the same. I tried a lot of things, which I found on StackOverflow, but none of them worked.
Steps to reproduce:
- Get the PokeGOAPI-Java-0.0.1-SNAPSHOT.jar file building from source
- Put PokeGOAPI-Java-0.0.1-SNAPSHOT.jar in libs folder in Android Studio Project
- Right click and choose "Add as a library"
- ./gradlew clean in the folder with the project
- Write some code using API functions
- Run the app
Expected behavior: The app should run
Actual behavior: The app doesn't run because of 5 errors
Stacktrace (If it's a crash): Error:PARSE ERROR: Error:unsupported class file version 52.0 Error:...while parsing svarzee/gps/gpsoauth/AuthToken.class Error:1 error; aborting :app:transformClassesWithDexForDebug FAILED Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
Version: I downloaded the libs on 29.07.2016.
Huh, seems to be an issue with gpsoauth. Can you try compiling with Java 7 instead of Java 8?
Nevermind, this will be fixed with the merge of #347