Android Question Can't install on other device

Quillok

Member
Licensed User
Longtime User
hey, i got a strange problem. (to me strange, probably the solution is totally simple)

I can compile my app normally via USB connection and install it on my phone.
However, if I connect another mobile/tablet, this will not work. Both have the developer option enabled and USB debugging.

I get the following error message when I try to compile the app:

B4A Version: 9.80
Java Version: 8
Parsing code. (0.10s)
Building folders structure. (0.03s)
Compiling code. (0.21s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.00s)
Compiling debugger engine code. (0.01s)
Compiling generated Java code. (0.01s)
Convert byte code - optimized dex. (1.04s)
Packaging files. (1.20s)
Copying libraries resources (0.00s)
Signing package file (private key). (0.55s)
ZipAlign file. (0.05s)
Installing file to device. Error
adb: failed to install result_RAPID_DEBUG.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl63723771.tmp/base.apk (at Binary XML file line #9): Requires newer sdk version #28 (current version is #26)]

In my manifest I use this line:

<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="28"/>

Any idea what the problem is? I would be grateful for any help.

Thanks in advance!
 

barx

Well-Known Member
Licensed User
Longtime User
Do the 'other' devices have a new enough version of android. You have set the Min to 28. So devices need at least version 28. If you don't NEED ver 28 for the app to operate then target the desired, but set min lower.
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
p.s. sdk version 28 is Android Pie. So anything running an SDK level below this will reject the install.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
1586597295595.png


Me too ?

(well, not usually, but not rarely)
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Have you pressed Ctrl-P (clean project) before compile with the new phone?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top