Android Question (solved) Convert byte code - optimized dex. Error

f0raster0

Well-Known Member
Licensed User
Longtime User
I have b4a 4.30 after replaced the library NFC.xml, NFC.jar v1.0 for NFC.xml, NFC.jar v1.24 I get the error below.

I want to use the library NFC.xml, NFC.jar v1.24 with a small "helloWord" about NFCV tags (forum example) before it was working but now that I have updated b4a to v4.30 this "helloWorld" doesn't work because of the library (NFC.xml, NFC.jar v1.0) then I have tried change NFC.xml, NFC.jar v1.0 to NFC.xml, NFC.jar v1.24 but I got the error1

Also I have tried MaxRamForDex=512 to MaxRamForDex=1024 but I get a new error2.


Error1
B4X:
B4A version 4.30
Parsing code.                           0.06
Compiling code.                         0.36
Compiling layouts code.                 0.02
Generating R file.                      0.06
Compiling generated Java code.          1.23
Convert byte code - optimized dex.      Error
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: class name (BADoclet$Property) does not match path (BADoclet/BADoclet$Property.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:665)
    at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
    at com.android.dx.command.dexer.Main.access$600(Main.java:78)
    at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
    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:596)
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
    at com.android.dx.command.dexer.Main.run(Main.java:230)
    at com.android.dx.command.dexer.Main.main(Main.java:199)
    at com.android.dx.command.Main.main(Main.java:103)
...while parsing BADoclet/BADoclet$Property.class
1 error; aborting
    Optimized dexer failed. Switching to Standard dexer.

Error2
B4X:
B4A version 4.30

Parsing code.                           0.03
Compiling code.                         0.31
Compiling layouts code.                 0.02
Generating R file.                      0.06
Compiling generated Java code.          Error
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Error occurred during initialization of VM
Could not reserve enough space for object heap
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…