Unity 安卓31的apk无法安装
说明:项目unity2018.4.36f1,之前出包正常,后面sdk target version 升级到31后,Android12的安卓机上,该apk安装失败。1、主要问题:Androidmanifest.xml里是否注意写exported,参考:
https://www.jianshu.com/p/ec1b3295b271
2、同时,adb抓取安装失败日志里可以看到具体的activity或者Receiver,例如:
com.onesignal.GcmBroadcastReceiver:Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present
查看apk里Androidmanifest.xml中com.onesignal.GcmBroadcastReceiver未写exported,其引用可能是自己项目写的,可能是引用的第三方SDK里未写,排除法处理。
页:
[1]