Hi all,
I have an app which uses the cameraEx to scan for barcode and firebase to receive notifications. Recently I was having problem receiving notification on my Xiaomi device (Android 12) and I found the following change:
android:exported="false"
After that my Xiaomi device can receive the firebase notification without problem. Now my problem is that when I submitted my AAB file to Play Store I've got the following error after I uploaded the app bundle file. Previous version release a week back with android:exported="true" has no problem during upload.
An error occurred while running bundletool build-apks on your uploaded app bundle. Ensure that your app bundle is valid by running bundletool build-apks locally and try again. Learn more. Error: Found multiple <meta-data> elements for key 'com.google.android.gms.version', expected at most one.
Does anyone experience this problem before?
Appreciate any suggestion. Thanks.
In my Main module the following code still remains:
Below is my project manifest:
I have an app which uses the cameraEx to scan for barcode and firebase to receive notifications. Recently I was having problem receiving notification on my Xiaomi device (Android 12) and I found the following change:
android:exported="false"
After that my Xiaomi device can receive the firebase notification without problem. Now my problem is that when I submitted my AAB file to Play Store I've got the following error after I uploaded the app bundle file. Previous version release a week back with android:exported="true" has no problem during upload.
An error occurred while running bundletool build-apks on your uploaded app bundle. Ensure that your app bundle is valid by running bundletool build-apks locally and try again. Learn more. Error: Found multiple <meta-data> elements for key 'com.google.android.gms.version', expected at most one.
Does anyone experience this problem before?
Appreciate any suggestion. Thanks.
In my Main module the following code still remains:
Main:
#AdditionalJar: com.google.android.gms:play-services-vision
Below is my project manifest:
Manifest:
'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="24" 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.
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
AddPermission(android.permission.READ_EXTERNAL_STORAGE)
AddPermission(android.permission.SYSTEM_ALERT_WINDOW)
SetApplicationAttribute(android:largeHeap,"true")
AddApplicationText(
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="$PACKAGE$.provider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
)
CreateResource(xml, provider_paths,
<files-path name="name" path="shared" />
)
'AddPermission(android.permission.REQUEST_INSTALL_PACKAGES)
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
AddApplicationText(<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES"
android:value="barcode,,face" />
)