butterknife icon indicating copy to clipboard operation
butterknife copied to clipboard

help: I get a big problem

Open mitty1987 opened this issue 8 years ago • 7 comments

when i use classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT' with gradle 4.4+ i can't sync project, but 2 weeks ago it was usefull

detail of the problem: Error:Uninitialized object exists on backward branch 70 Exception Details: Location: com/android/build/gradle/tasks/BuildArtifactReportTask.newArtifact(Lcom/android/build/api/artifact/BuildableArtifact;)Lcom/android/build/gradle/tasks/BuildArtifactReportTask$BuildableArtifactData; @119: goto Reason: Error exists in the bytecode Bytecode: 0000000: bb00 f459 2bb9 0139 0100 c000 6b2b b901 0000010: 3d01 0001 b901 4302 0059 1301 45b8 0148 0000020: c000 374d 3a0d 3a0c 3a0b 2c4e bb00 6859 0000030: 2c10 0ab8 003d b700 69c0 006b 3a04 2db9 0000040: 0054 0100 3a05 1905 b900 5a01 0099 002d 0000050: 1905 b900 5e01 003a 0619 0419 06c0 014a 0000060: 3a07 3a0e 1907 b901 4d01 003a 0f19 0e19 0000070: 0fb9 0075 0200 57a7 ffcf 1904 c000 773a 0000080: 0e19 0b19 0c19 0d19 0eb7 0150 b0
Stackmap Table: full_frame(@70,{Object[#2],Object[#109],Object[#55],Object[#55],Object[#107],Object[#86],Top,Top,Top,Top,Top,Uninitialized[#0],Uninitialized[#0],Object[#107]},{}) same_frame(@122)

mitty1987 avatar Feb 26 '18 12:02 mitty1987

I'm having the same problem. did you find any solution yet? Thanks

d34n0s avatar Mar 06 '18 03:03 d34n0s

but 2 weeks ago it was usefull and its 'com.jakewharton:butterknife-gradle-plugin:9.0.0-SNAPSHOT'

"SNAPSHOT" is changeable compile a stable(release) version is better choice.

champion32 avatar Mar 06 '18 03:03 champion32

@champion32 not much choice other than to use SNAPSHOP due to this https://github.com/JakeWharton/butterknife/issues/1165

d34n0s avatar Mar 06 '18 04:03 d34n0s

@d34n0s Downgrade, use 8.7.1-SNAPSHOT

mitty1987 avatar Mar 06 '18 05:03 mitty1987

thanks @mitty1987 ! That worked.

d34n0s avatar Mar 06 '18 06:03 d34n0s

Probably this issue related to the JDK bug. Try to update your Java to the latest one.

3mph4515 avatar Mar 28 '18 13:03 3mph4515

https://stackoverflow.com/questions/49515100/gradle-sync-failed-with-android-studio-3-1-uninitialized-object-exists-on-backw

go to Module Settings > SDK Location > Use embedded JDK. This will remove dependency on the external Java installation by using the embedded JDK.

coooliang avatar Aug 02 '18 01:08 coooliang