amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #1 B4A Version: 10.70 Parsing code. (0.30s) Java Version: 11 Building folders structure. (0.38s) Compiling code. (0.42s) ObfuscatorMap.txt file created in Objects folder. Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (7.24s) Linking resources (1.41s) Compiling generated Java code. (12.61s) Convert byte code - optimized dex. Error Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/AbstractComponentContainer; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$1; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$Builder; 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
B4A Version: 10.70 Parsing code. (0.30s) Java Version: 11 Building folders structure. (0.38s) Compiling code. (0.42s) ObfuscatorMap.txt file created in Objects folder. Compiling layouts code. (0.01s) Organizing libraries. (0.00s) (AndroidX SDK) Compiling resources (7.24s) Linking resources (1.41s) Compiling generated Java code. (12.61s) Convert byte code - optimized dex. Error Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26) Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/AbstractComponentContainer; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$1; Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/components/Component$Builder; 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
josejad Expert Licensed User Longtime User Jun 12, 2021 #2 Try one of these solutions. I had to reinstall the SDK to solve it Search Results www.b4x.com Upvote 0
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #3 which directory should I delete to reinstall sdk? Upvote 0
josejad Expert Licensed User Longtime User Jun 12, 2021 #4 It depends on where you have the sdk installed. Anyway, you can install it in another path and test setting up the new paths in the IDE. Just follow: https://www.b4x.com/b4a.html The recommended paths are "c:\java" for java,and "c:\Android" for the SDK 1.Oracle Java 8 or OpenJDK 11(recommended) Download one of the following JDKs. Note that OpenJDK 11 requires Windows 64 bit. OpenJDK 11 + OpenJFX 11: download link. License: GPL + classpath exception. License permits usage in closed commercial projects. (package components: OpenJDK and OpenJFX) Download the zip and unpack it. C:\java is a good place for it. It is recommended to use a tool such as 7-Zip to unzip the large package. Windows Explorer might fail to extract it properly. Installation is not required. 2. Android SDK + Required Resources You need to download two components, both of them do not require installation. Download Android SDK Command line tools Make sure to read and agree to the SDK license. Click on the Windows command line tools to see the license. Android Studio is not needed and will not be affected by the command line tools (which are always required). Unzip it in a folder such as C:\Android Upvote 0
It depends on where you have the sdk installed. Anyway, you can install it in another path and test setting up the new paths in the IDE. Just follow: https://www.b4x.com/b4a.html The recommended paths are "c:\java" for java,and "c:\Android" for the SDK 1.Oracle Java 8 or OpenJDK 11(recommended) Download one of the following JDKs. Note that OpenJDK 11 requires Windows 64 bit. OpenJDK 11 + OpenJFX 11: download link. License: GPL + classpath exception. License permits usage in closed commercial projects. (package components: OpenJDK and OpenJFX) Download the zip and unpack it. C:\java is a good place for it. It is recommended to use a tool such as 7-Zip to unzip the large package. Windows Explorer might fail to extract it properly. Installation is not required. 2. Android SDK + Required Resources You need to download two components, both of them do not require installation. Download Android SDK Command line tools Make sure to read and agree to the SDK license. Click on the Windows command line tools to see the license. Android Studio is not needed and will not be affected by the command line tools (which are always required). Unzip it in a folder such as C:\Android
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #5 I already did that and still the same Upvote 0
josejad Expert Licensed User Longtime User Jun 12, 2021 #6 Have you tried some of the other solutions? Do you use FirebaseNotificacion? Upvote 0
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #7 I use firbaseAdmob and FirebaseNotificacion Attachments Capture.JPG 32.3 KB · Views: 451 Last edited: Jun 12, 2021 Upvote 0
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #8 José J. Aguilar said: Have you tried some of the other solutions? Do you use FirebaseNotificacion? Click to expand... yes Upvote 0
José J. Aguilar said: Have you tried some of the other solutions? Do you use FirebaseNotificacion? Click to expand... yes
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #9 I updated the build tools from Android Studio and all went just fine Upvote 0
amidgeha Active Member Licensed User Longtime User Jun 12, 2021 #10 José J. Aguilar said: Have you tried some of the other solutions? Do you use FirebaseNotificacion? Click to expand... Thanks for your help Upvote 0
José J. Aguilar said: Have you tried some of the other solutions? Do you use FirebaseNotificacion? Click to expand... Thanks for your help
Erel B4X founder Staff member Licensed User Longtime User Jun 13, 2021 #11 amidgeha said: I updated the build tools from Android Studio and all went just fine Click to expand... Incorrect solution. Correct solution: - Delete Android SDK. - Update to beta version with the updated resources: https://www.b4x.com/android/forum/threads/b4a-v10-9-beta-is-available-for-download.131515/#content Upvote 0
amidgeha said: I updated the build tools from Android Studio and all went just fine Click to expand... Incorrect solution. Correct solution: - Delete Android SDK. - Update to beta version with the updated resources: https://www.b4x.com/android/forum/threads/b4a-v10-9-beta-is-available-for-download.131515/#content