Android Question Error after add jXUI.jar

nickysuwandi

Member
Licensed User
Longtime User
i had get error this error after add jXUI.jar to libraries

B4X:
B4A Version: 8.80
Parsing code.    (0.14s)
Building folders structure.    (0.09s)
Compiling code.    (0.43s)
   
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
Generating R file.    (0.25s)
Compiling generated Java code.    (3.43s)
Convert byte code - optimized dex.    Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/AbsObjectWrapper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AClass;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AClass$ImplB4AClass;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AThreadPool;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AThreadPool$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AThreadPool$MyThreadFactory;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AThreadPool$QueuedTask;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/B4AUncaughtException;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lanywheresoftware/b4a/BA;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:692)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:315)
    at com.android.dx.command.dexer.Main.runDx(Main.java:293)
    at com.android.dx.command.dexer.Main.main(Main.java:249)
    at com.android.dx.command.Main.main(Main.java:94)
Caused by: java.lang.InterruptedException: Too many errors
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:684)
    ... 4 more
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

nickysuwandi

Member
Licensed User
Longtime User
jXUI is a B4J Library. In B4A you should use XUI

DonManfred thanks for fast respon, my code compile error if i don't include jxui.jar.
I don't have this error before i update new android sdk (when i try want try FCM). This program run smoothly before.

B4X:
B4A Version: 8.80
Parsing code.    (0.16s)
Building folders structure.    (0.06s)
Compiling code.    (1.20s)
Compiling layouts code.    (0.04s)
Organizing libraries.    (2.23s)
Generating R file.    (0.63s)
Compiling debugger engine code.    (4.09s)
Compiling generated Java code.    Error
Cannot find: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\jxui.jar
 
Upvote 0

nickysuwandi

Member
Licensed User
Longtime User
After searching for couple hour, i found library xCustomListView 1.70 couse this problem

B4X:
B4A Version: 8.80
Parsing code.    (0.02s)
Building folders structure.    (0.09s)
Compiling code.    (0.32s)
Compiling layouts code.    (0.01s)
Organizing libraries.    (2.92s)
Generating R file.    (0.69s)
Compiling debugger engine code.    (1.84s)
Compiling generated Java code.    Error
Cannot find: C:\Program Files (x86)\Anywhere Software\Basic4android\libraries\jcore.jar

After i add jcore.jar, the next error is cannot find jxui.jar.
Anyone can't help me,why xcustomlistview 1.70 couse this problem??

Thanks
 
Upvote 0

nickysuwandi

Member
Licensed User
Longtime User
Now you are using a b4j customlistview in B4A?
You should use B4A Components when using B4A.

Probably all Libraries starting with j (or ending with 4j) are not for B4A.

Upload a small project which shows the issue.

DonManfred, when i install Basic4Android 8.80, i had this library build in xCustomListView 1.70.
I don't know this wrong, but i had replace xCustomListView.Jar (ver 1.63) and this problem is solve.
 
Upvote 0

nickysuwandi

Member
Licensed User
Longtime User
Everything you did is not required.

I recommend you to uninstall B4A, make sure that the internal libraries folder was deleted and reinstall it. XUI, xCustomListView and the other required libraries are internal libraries and are included in the IDE.
Ok, thanks Erel
 
Upvote 0
Top