Did you update the
Android SDK Command line tools and
required resources ?
Double check you have followed rigidly every step:
https://www.b4x.com/b4a.html
Use 7-Zip to extract Zips, Windows Extract can/does corrupt the folder structure.
yes i did. so i can tell exactly what i did.
1. i removed everything in my c:\Android folder
2. download Android SDK Command Line tools (ver 6609375 ) and copy to c:\Android Folder
3. download required resources and copy to c:\Android Folder
NOW! if i try to run the project it WORKS!
then i open SDK Manager and update ALL suggested packages and here starts the issue
i get Error when i try to build about
androidx.work:work-runtime is missing
so i go to sdk manager and install that package
then i get a new error:
com.google.firebase/firebase-encoders so i go to sdk manager and install that package
after that i get the error:
B4A Version: 10.50
Parsing code. (0.12s)
Java Version: 8
Building folders structure. (0.02s)
Compiling code. (0.26s)
Compiling layouts code. (0.03s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Generating R file. (0.66s)
Compiling debugger engine code. (2.56s)
Compiling generated Java code. (3.21s)
Convert byte code - optimized dex. Error
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/DataEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/Encoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/EncodingException;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ObjectEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ObjectEncoderContext;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ValueEncoder;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/ValueEncoderContext;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/annotations/Encodable;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/firebase/encoders/annotations/Encodable$Field;
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
so there is a package in the SDK suggested packages that does the problem.
this is the list that the SDK Managaer wants me to install after re-install the required resourcess.
AGAIN, if i don't install those Packages everything runs fine after installing them i need to install 2 more packages as described above and then i get the Dexer error.
what should i do?