说明:项目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