Android Question UNEXPECTED ....

akinnovation

Member
Licensed User
Longtime User
Hi,
I have installed the 5.20 release of B4A.
When I try to compile an elder project I ovbtain:
B4A version: 5.20
Parsing code. (0.09s)
Compiling code. (0.15s)
Compiling layouts code. (0.06s)
Generating R file. (0.21s)
Compiling generated Java code. (4.06s)
Convert byte code - dex. Error
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classes
at com.android.dx.command.dexer.Main.processClass(Main.java:752)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:718)
at com.android.dx.command.dexer.Main.access$1200(Main.java:85)
at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1645)
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:672)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
Caused by: 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.parseClass(Main.java:764)
at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)
at com.android.dx.command.dexer.Main.processClass(Main.java:749)
... 12 more
1 error; aborting


I have just set the maxram to 1536, I have clean the project, but the problem still remain

Please help.
marco
 

Lee Gillie CCP

Active Member
Licensed User
Longtime User
I don't have your specific answer, but I have found to go into sources and correlate the line references to the transpiled java code can give hints. Look at Objects and src sub-folders of your project. What is going on in Main.java on line 752?
 
Upvote 0

akinnovation

Member
Licensed User
Longtime User
Hi Erel,
How I can avoid to include the BADoclet classes ?
This version of app is the 3.x.x, so I have compiled this project many times with elder version of B4A and also with the 5.20 beta.
I have installed the 5.20 version std and I have had this trouble.

Please help me, this app is just in use to customer, and I must do some modifications.

BR
marco

I have tried to compile also elder version of the app, and I have the same error.
 
Upvote 0

akinnovation

Member
Licensed User
Longtime User
Hi Erel,
no, I haven't created any libraries.

I use:
Androidresources (1.60)
byteconverter (1.10)
compactactionbar(1.60)
core(4.92)
dialogs(2.92)
dateutils(1.05)
ftp-auto(1.06)
gifdecoder(1.0)
ime(1.05)
nfc(1.25)
nfcforeground(1.00)
phone(2.27)
reflection(2.40)
sql(1.20)
stringutils(1.02)

many thx for the help.
marco
 
Upvote 0

akinnovation

Member
Licensed User
Longtime User
Hi Erel,
all OK now, it was the NFC (1.25) the one in the wiky is not up-to-date with the jar file posted in the
"Adding new functionalities and tags decoding to NFC library" thread

Many many thx
marco
 
Upvote 0
Top