Java Question Unexpected error on 2nd build...

DevBaby

Active Member
Licensed User
Longtime User
I compiled and loaded my app onto my phone. When ran the app, I noticed that I had incorrectly declared a variable. I fixed the problem (changed radiobutton to label and treid to complie again and got this totally unrelated issue with a library.


B4A version: 5.80
Parsing code. (0.17s)
Compiling code. (0.22s)

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. (0.01s)
Generating R file. (0.05s)
Compiling generated Java code. (0.94s)
Convert byte code - optimized dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: class name (com/facebook/AccessToken$1) does not match path (Facebooksdk400/com/facebook/AccessToken$1.class)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:520)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.processClass(Main.java:598)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:570)
at com.android.dx.command.dexer.Main.access$2(Main.java:546)
at com.android.dx.command.dexer.Main$2.processFileBytes(Main.java:514)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:537)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:449)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:236)
at com.android.dx.command.dexer.Main.run(Main.java:206)
at com.android.dx.command.dexer.Main.main(Main.java:179)
at com.android.dx.command.Main.main(Main.java:103)
...while parsing Facebooksdk400/com/facebook/AccessToken$1.class
1 error; aborting


Again, the build I ran the first time completed just fine, my changes were to two variables not related to the facebook library. Now, it doesn't work.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…