Android Question Google Play App APK Submit error android:exported

carlhc2017

New Member
Licensed User
I've created a new version of my app and I am trying to upload the APK to the play store. The play store asked me to upgrade to API 31. After doing it, it launches this error:

"You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported"

This is my manifest.xml file (I've attached an image of it too) :

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-library android:name="org.apache.http.legacy" android:required="false" />)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'29-dic-19: EREL: Foreground services require a new non-dangerous permission. It is added automatically if using B4A v9+. Developers using older versions can add it with
AddPermission(android.permission.FOREGROUND_SERVICE)
'29-DIC-19: Para poder invocar servicios web SOAP desde B4A anterior a la Versión 9
SetApplicationAttribute(android:networkSecurityConfig, @xml/network_security_config)
'3-dic-20: Poder escribir en EXTERNAL STORAGE celular Samsung DistriLac (EYB) Tomado de:
'https://www.b4x.com/android/forum/t...lla-esterna-download-help.121448/#post-759179
'3-DIC-20: Tuve que actualizar Java (C:\Program Files\Java\jdk-11.0.8\bin\javac.exe) para que permitiera este atributo:
'SetApplicationAttribute(android:requestLegacyExternalStorage, true)

CreateResource(xml, network_security_config.xml,
<network-security-config>
<base-config cleartextTrafficPermitted="true">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
</network-security-config>)


I appreciate it if anyone could help me.

Thanks a lot in advance.
 

Attachments

  • solicitud22dic22.png
    solicitud22dic22.png
    30.4 KB · Views: 91
Top