PokeGOAPI-Java icon indicating copy to clipboard operation
PokeGOAPI-Java copied to clipboard

Error instant run android

Open john086 opened this issue 10 years ago • 15 comments

Any idea?

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: Return code 1 for dex process Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file.

john086 avatar Jul 28 '16 12:07 john086

you enabled multidex? Multidex doesn't support instant run.

FabianTerhorst avatar Jul 28 '16 12:07 FabianTerhorst

I disabled but had the same error.

john086 avatar Jul 28 '16 12:07 john086

https://github.com/svarzee/gpsoauth-java/pull/1

Dependency currently relies on Java 8, which the normal Android compiler doesn't yet support. When this is merged everything should work again. Until then I'd roll back to a previous commit or use the release build.

louisditzel avatar Jul 28 '16 12:07 louisditzel

Which commit i can use? of PokeGOAPI-Java ?

john086 avatar Jul 28 '16 12:07 john086

compile 'com.github.Grover-c13:PokeGOAPI-Java:b0f594e2c2'

Thats the commit before the one introducing the bug, should be fine. Replace the line in your gradle build file with that.

louisditzel avatar Jul 28 '16 12:07 louisditzel

The problem is that you cant login with google on these build, but you should be able to compile at least.

vmarchaud avatar Jul 28 '16 13:07 vmarchaud

Soo error: cannot find symbol class GoogleAutoCredentialProvider , there is no fix programmed?

john086 avatar Jul 28 '16 13:07 john086

did you guys get login working with the library? i only an error "BadAuthentication" on Android and i'm using the code from the pullrequest!

benjy3gg avatar Jul 28 '16 13:07 benjy3gg

with latest pull my code don't run give error in the first post

john086 avatar Jul 28 '16 13:07 john086

Google login arent working today, and GoogleAutoCredentialProvider introduced your bug, its logic that if you get the commit before the class isnt here.

vmarchaud avatar Jul 28 '16 13:07 vmarchaud

It's resolved this errore can close it

john086 avatar Jul 28 '16 13:07 john086

centralized issue in #326

vmarchaud avatar Jul 28 '16 21:07 vmarchaud

How was this issue resolved? Can someone guide me through this. I am using this dependency:

com.github.Grover-c13:PokeGOAPI-Java:dcaa793557

vaibhavthapliyal avatar Jul 29 '16 15:07 vaibhavthapliyal

@vaibhavthapliyal Check the issue that i linked, it isnt resolved yet.

vmarchaud avatar Jul 29 '16 15:07 vmarchaud

So, till this issue is resolved, which build can I use for a successful login with google and also bypass this instant run error?

vaibhavthapliyal avatar Jul 29 '16 15:07 vaibhavthapliyal