Android Question cannot build my project

ilan

Expert
Licensed User
Longtime User
wanted to update an old project but am not able to do it:



i have downloaded the sdk folder again and replaced it with the existing one. i have installed firebase-encoders but still get this error:

SDK version: 6609375

what is the problem?
 

ilan

Expert
Licensed User
Longtime User
B4X:
#MultiDex: True

doesnot work i get this:

 
Upvote 0

ilan

Expert
Licensed User
Longtime User
what i try:

- reinstall b4a (latest version 10.5)
- replaced sdk folder
- replaced SDK tools folder
- installed all suggested SDK packages in SDK manager
- reinstall android studio
- restarted pc about 14 times
- searched here without any success
- searched google also without any success (all i got there was using multi dex and that did not resolve the issue)

i need to mention that I had other errors that i managed to solve but got stuck on this error:


have no idea what esle i can do
 
Last edited:
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
For error
B4X:
com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
you need to set
B4X:
#MultiDex: True
for second error after you have set #MultiDex: True I don't have any solution.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User

thank you for trying to help. i will wait until erel will have a look at this thread.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
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:


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?
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
In most cases you don't need to touch the sdk manager at all


really? i always made sure i was up to date in the sdk manager and that usually broke something in my code.
if i download the "required resources" and the "command line tool" and unzip to c:\android folder everything works fine only after updating the packages in sdk manager i start getting problems. but if you say i dont have to update then it is fine for me.




those are the libs i use.
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
As erel already said. In most cases you dont need to update the sdk packages.

download the "required resources" and the "command line tool" and unzip to c:\android folder. But first remove everything from that folder as explained in the b4a install documentation.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Maybe this:
 
Upvote 0

Almora

Active Member
Licensed User
Longtime User

didn't work


.
 
Upvote 0

Almora

Active Member
Licensed User
Longtime User
do you mean that you are not able to run the emulator from B4A? i run it from Android Studio.
I only "required resources" "command line tool" and emulator installed. I did not install additional components (maven)
problem is solved..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…