Android Question Why am I having this error?

amidgeha

Active Member
Licensed User
Longtime User
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
 
Try one of these solutions. I had to reinstall the SDK to solve it

 
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
 
Upvote 0
Have you tried some of the other solutions?

Do you use FirebaseNotificacion?
 
Upvote 0
I use firbaseAdmob and FirebaseNotificacion
 

Attachments

  • Capture.JPG
    Capture.JPG
    32.3 KB · Views: 451
Last edited:
Upvote 0
Upvote 0
Back
Top