Android Question latest sdk supported for android

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
here i go again...

what is the latest sdk version supported for android?
when i try 31 or 32 on brand new samsung s22 ultra i get an error with something wrong in the package and the installation crashes
on an older phone (huawei mate 9) 32 works perfectlly
so i had to use 30

any idea?
i'm using lated b4a version
thanks
 

Sagenut

Expert
Licensed User
Longtime User
On Xiaomi MI9T PRO my projects works normally using SDK 32, at least apparently.
So it could be a device related problem.
Just out of curiosity, did you tried to modify Manifest like this:
B4X:
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="32"/>
Anyway I think that using Android SDK 30 it's more than enough for now.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
That's exactly what i used
Min=14
Target=32
But it didn't work
When set target=30 it was all perfect
It's strange as i think it was working but not sure
The samsung runs android 12
The huawei runs 9

Just to clear things - it didn't even install with 32 so i couldn't even try running
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
But did you selected ANDROID JAR from PLATFORM 32 in the path?
Anyway I would stick to Android SDK 30 and everything will work for sure.
These can be funny experiments but for production and safety they are not needed, at least for now.
I think that you can use ANDROID JAR 32 to compile, but in Manifest you should keep TARGET SDK 30.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
Not sure i got the idea....
 
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Anyway remember that just sticking to 30 will work everywhere.
This is the solution for production.
So don't crash your head, if not just for fun and study.
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
As far as i know google requires keeping the uploaded apps to be sdk updated
Basically i don't care to keep my sdk to 30, the question is what about the big boss of us all - the all mighty mr. Google...
 
Upvote 0

Zeev Goldstein

Well-Known Member
Licensed User
Longtime User
ok, i see i have only sdk 30 on my computer
if i run from b4a the sdk update and will update all recommended - will that do the trick?
will i then be able to use sdk 32 ?
or should i leave things as they are without update?
and wait for the full version update of b4a?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
Never run SDK Manager unless you know exactly what you want to achieve. Currently B4A is intended for use with SDK 30 and this is the current requirement for the Play Store. As and when SDK 31 is required B4A and the associated SDK will be updated. Until then stop playing with other SDK versions and just use the downloads from the B4A product page and target SDK 30. There is absolutely no reason to do otherwise.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…