Android Question Android 12 and android:exported

Status
Not open for further replies.

EduardoElias

Well-Known Member
Licensed User
Longtime User
I have created a new app and I am trying to upload the first aab bundle to the play store.

It ask me to use level 31 and doing that it gives me this error:

B4X:
Warning: If an activity, service, or broadcast receiver uses intent filters and doesn't have an explicitly-declared value for android:exported, your app can't be installed on a device that runs Android 12 or higher.

This is the permissions:

View attachment 133546

B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.

1662972837150.png


I have tried some solutions with no success. I have no idea what to do.
 

Attachments

  • 1662972196590.png
    1662972196590.png
    13.8 KB · Views: 85

ppgirl

Member
Licensed User
Longtime User
targetSdkVersion 31 need "android:exported" lines in Manifest file. The newest B4X can add it .
 
Upvote 0

jahswant

Well-Known Member
Licensed User
Longtime User
I don't think it's already recommended to target API 31.

Refer to this thread :

 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
I don't think it's already recommended to target API 31.

Refer to this thread :

I have originally target 30 but is says I need to go 31 when uploading it on play store, what is weird.

This is a new app. Just created
 
Upvote 0

ppgirl

Member
Licensed User
Longtime User
Root cause is targetSdkVersion 31 need "android:exported" lines in Manifest file.

Solution is use the the newest B4A 11.80, it will add those lines into AndroidManifest.xml.
 
Upvote 0

iamRodrigoli

New Member
I also have that problem where to put "android:exported"
it won't let me publish in play store for android 12, please help


View attachment 133578
When uploading to the Play store I get this error. What can I do?

You uploaded an APK or Android App Bundle that has an activity, activity alias, service, or intent-filtering listener, but without the "android:exported" property set. This file cannot be installed on Android 12 or later. See developer.android.com/about/versions/12/behavior-changes-12#exported
 
Upvote 0
Status
Not open for further replies.
Top