G GeoffT660 Active Member Licensed User Longtime User Sep 16, 2020 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Sep 17, 2020 #2 You need to find which library adds a reference to another version of OkHttp and remove this dependency. It is not one of the internal libraries. Upvote 0
You need to find which library adds a reference to another version of OkHttp and remove this dependency. It is not one of the internal libraries.
divinglog Member Licensed User Longtime User Oct 1, 2020 #3 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
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.