Android Question How to find out which library is giving an error?

Euclides

Member
Licensed User
Longtime User
Hey guys...

I am a student at FATEC Jensen Vital in São José dos Campos and I am trying to develop a work to be delivered to the school.

I'm trying to make the connection between B4A and Firebase by following these tutorials:


* Fonts in the 1st. comment.

Well then; at compile time there were 7 errors:

Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)

I went into SDK Manager and updated a bunch of libraries.

Out of the 7 errors only 1 continued.

I spent a few days without touching the project.

Today I loaded it and tried again. Ouch:

B4A Versão: 11.00
Analisando o código. (0.03s)
Java Versão: 11
Building folders structure. (0.15s)
Compilando o código (0.10s)
Compilando código dos layouts. (0.04s)
Organizando bibliotecas (0.00s)
(AndroidX SDK)
Compilando recursos (2.50s)
Linkando recursos (2.19s)
Compilando o código Java. (5.82s)
Convertendo Byte Code - DEX otimizado. 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: 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)
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

When typing: firebase in SDK Manager appears:

com.google.firebase:firebase-good (Google Maven) version: 29.0.0

And with the unchecked box.

If I mark it and click on "Install Selected", the following message appears.

Again that "gigantic" list of installed libraries and versions appears and this exclusively appears as unmarked.

In the process of trying to download and install it, the following message appears (Error???):

B4A Sdk Manager: 4.00
TempFolder = C:\Users\Euclides\AppData\Roaming\ANYWHE~1\BASIC4~1\temp
DataFolder: C:\Users\Euclides\AppData\Roaming\B4ASdkManager
SDK version: 6609375
Downloading: https://dl.google.com/dl/android/maven2/master-index.xml
Downloading: https://dl.google.com/dl/android/ma...e/firebase-bom/29.0.0/firebase-bom-29.0.0.pom
Downloading: https://dl.google.com/dl/android/ma...e/firebase-bom/29.0.0/firebase-bom-29.0.0.jar

<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 404 (Not Found)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That’s an error.</ins>
<p> <ins>That’s all we know.</ins>

And again the same sequence of errors as above.

How this all should not have happened, since I didn't mess with the code. My question:

Can you identify where the problem is?

Like?

What to do?

Any suggestion?

I appreciate the attention of everyone who can give me a light.

Euclides Franco de Rezende.
euclas@gmail.com
 

DonManfred

Expert
Licensed User
Longtime User
What to do?
Based on the error it looks like an outdated SDK.

Did you install a new SDK with the newest B4A Release? And also configured the IDE to use the new SDK? Tools->Configure paths
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
^^^This^^^.

Install a new SDK exactly following the instructions.
Note the instruction
  • Note that you don't need to run B4A Sdk Manager, unless you want to use the Android emulator, which is less recommended.
DO NOT RUN Sdk Manager unless you really know that you need to.
 
Upvote 0

Euclides

Member
Licensed User
Longtime User
When re-installing everything appears (Continues after printscreen):

1636155660196.png


If I try to compile, the message:

B4A Versão: 11.00
Analisando o código. (0.02s)
Java Versão: 11
Building folders structure. (0.03s)
Compilando o código (0.04s)
Compilando código dos layouts. (0.00s)
Organizando bibliotecas Error
Artifact do Maven não localizado: com.google.firebase/firebase-database-collection

Just confirming the above...

Loading SDK Manager and selecting that library (Version 18), tagging, installing and again trying to compile:

B4A Versão: 11.00
Analisando o código. (0.02s)
Java Versão: 11
Building folders structure. (0.03s)
Compilando o código (0.10s)
Compilando código dos layouts. (0.04s)
Organizando bibliotecas (0.47s)
(AndroidX SDK)
Compilando recursos (1.36s)
Linkando recursos (1.58s)
Compilando o código Java. (8.44s)
Convertendo Byte Code - DEX otimizado. Error
Uncaught translation error: com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
1 error; aborting

Where can I find the right library to download and install?
Or how to do this?
It seems that the solution has approached.
I appreciate the attention of friends.
 
Last edited:
Upvote 0

Euclides

Member
Licensed User
Longtime User
Studying the message and looking in the folders...
Apparently this error occurs when trying to access the firebase-bom-29.0.0.jar file
In SDK Manager, version 29 even appears. But only for the firebase-bom-29.0.0.pom file (I can't access firebase-bom-29.0.0.jar).
Does anyone know if this file exists somewhere?
At where?
Or do you have it and could you make it available?

I couldn't find it anywhere and the SDK Manager won't install it...

Thanks to friends.
 
Upvote 0

Euclides

Member
Licensed User
Longtime User
firebase-bom-29.0.0.pom has no jar belong to. You dont need the bom
Hello.
Thanks for the answer.
If I don't need the BOM, How would I make this message not occur?
Where does the call to BOM "disconnect"?
In the link of the first post there is the source, but if necessary I can send it again as a file (.zip) attached.
Again, very grateful for the effort and help.
 
Upvote 0
Top