Android Question App cannot be installed on Android 14

Tom_V

Member
Hello ;)
My app cannot be installed on Android 14.
Error messages:
1) This app was develeoped for older systems
2) This app is not compatible with your device
I tried everything, changed the manifest (Target SDK version 34), did implement the runtime permissions, permissions bluetooth....
Who can help me? I can also send the complete project and I can pay for solving this issue. I need this app working ASAP!
THANK YOU VERY MUCH IN ADVANCE!
 
Solution
My app cannot be installed on Android 14.
Installed in Android 14, there are permission issues. I went to the settings (phone) and manually adjusted them,
allowing various permissions such as Location, Music and Audio, Nearby Devices, and Photos and Videos. (I didn’t "think" about it, I simply allowed all the permissions) after that I installed the App.. there are more issues but the App run now

Tom_V

Member
Hi Erel, this is the Manifest editor code:

AddManifestText(
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-feature
android:glEsVersion="0x00020000"
android:required="true"/>
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)

SetApplicationAttribute(android:minSdkVersion, "23")
SetApplicationAttribute(android:targetSdkVersion, "34")
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:usesCleartextTraffic, "true")

AddPermission(android.permission.INTERNET)
AddPermission(android.permission.ACCESS_NETWORK_STATE)
AddPermission(android.permission.ACCESS_FINE_LOCATION)
AddPermission(android.permission.BLUETOOTH)
AddPermission(android.permission.BLUETOOTH_ADMIN)
AddPermission(android.permission.BLUETOOTH_ADVERTISE)
AddPermission(android.permission.BLUETOOTH_CONNECT)
AddPermission(android.permission.BLUETOOTH_SCAN)
AddPermission(com.google.android.providers.gsf.permission.READ_GSERVICES)

' Optional: Medien-Zugriff (Android 13+)
AddPermission(android.permission.READ_MEDIA_IMAGES)
AddPermission(android.permission.READ_MEDIA_VIDEO)
AddPermission(android.permission.READ_MEDIA_AUDIO)

' Für ältere Geräte (optional, bis Android 9)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)

AddManifestText(
<permission android:name="$PACKAGE$.permission.MAPS_RECEIVE" androidrotectionLevel="signature"/>
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>
)

AddApplicationText(
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyBoiTRPe4sHKGrt4mmu01_cAE3yjb277m0"/>
<uses-library android:name="org.apache.http.legacy" android:required="false" />
)

AddReceiverText(s2,
<intent-filter>
<action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
</intent-filter>)
 
Upvote 0

teddybear

Well-Known Member
Licensed User
SetApplicationAttribute(android:minSdkVersion, "23")
SetApplicationAttribute(android:targetSdkVersion, "34")
Try to comment the 2lines and then add this
B4X:
'SetApplicationAttribute(android:minSdkVersion, "23")
'SetApplicationAttribute(android:targetSdkVersion, "34")
AddManifestText(<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="34"/>)
 
Upvote 1

Erel

B4X founder
Staff member
Licensed User
Longtime User
That's the correct answer.
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
Longtime User
My app cannot be installed on Android 14.
Installed in Android 14, there are permission issues. I went to the settings (phone) and manually adjusted them,
allowing various permissions such as Location, Music and Audio, Nearby Devices, and Photos and Videos. (I didn’t "think" about it, I simply allowed all the permissions) after that I installed the App.. there are more issues but the App run now
 
Upvote 0
Solution

Tom_V

Member
The Manifest was the solution.
f0raster0 changed a few things in manifest, thanks!
android:minSdkVersion="26" android:targetSdkVersion="34"

I don´t understand why this not work:
'SetApplicationAttribute(android:minSdkVersion, "23")
'SetApplicationAttribute(android:targetSdkVersion, "34")

But I am happy that this is going to work:
AddManifestText(<uses-sdk android:minSdkVersion="26" android:targetSdkVersion="34"/>)
 
Upvote 0