Android Question Issue when upgrading to 10.2

GeoffT660

Active Member
Licensed User
Longtime User
I just tried to upgrade to B4x 10.2 from 10.0 and received the following error. I thought I followed the directions exactly but still having this issue. Any ideas for a resolution please.

Organizing libraries. (0.01s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (3.84s)
Compiling generated Java code. (3.40s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Address;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Authenticator;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Authenticator$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheRequestImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheRequestImpl$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lokhttp3/Cache$CacheResponseBody;
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
 

divinglog

Member
Licensed User
Longtime User
I had the same problem after upgrading to 10.2. For me the problematic library was the Dropbox HTTP Lib. I fixed the problem by opening the DropboxHttpAPI.xml file from the library folder and editing those two lines:

XML:
  <dependsOn>okhttp-3.12.12</dependsOn>
  <dependsOn>okio-1.17.5</dependsOn>

Then the app compiled again and the Dropbox API works just fine.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…