Using Unity Native SDK with target API level 33 on Android
Publicado 25 de out. de 2022
We are using the Unity Native SDK (latest version,1.2.5). Google had been nagging us to update out target API level, so we decided to do that. But on uploading our bundle to the play store, they complained:
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
I checked our manifest for things using 'intent-filter' without the 'android:exported' property and drew a blank. Then I tried extracting the android manifest from the built bundle. The only item with an 'intent-filter' without the 'android:exported' property was a receiver, com.zendesk.sdk.power.BatteryStateBroadcastReceiver.
I see a more recent version of the Android SDK (version 3.3.6) that purports to target API Level 33, but no similar update for Unity Native SDK. How can I continue to use the Unity Native SDK and target API level 33? Thanks in advance,
Andy
0
1 comentário
Andrew Block
I eventually tracked this down to some remnants of the old Android Zendesk SDK that we were using before migrating to the Unity version. Specifically, a plugin called 'android-plugin-release.aar'. I guess it got missed during the conversion because the naming gives no clue it relates to Zendesk. Anyway, the problem is solved by removing this!
0
Entrar para deixar um comentário.