compileSdkVersion 31
defaultConfig {
minSdkVersion 20
targetSdkVersion 31
}
构建或组装调试效果良好。
但是安装APK时出现“解析包错误时出现问题”。
当我查找时,我看到将 android:exported="true" 添加到活动中,
将其添加到所有活动中是否正确?
除了活动之外我还应该添加其他东西吗?
例如 >> 提供者、接收者、服务
在 AndroidManifest.xml 中的活动和服务上添加 android:exported="true"。
//set exported **true** for all activitys
<activity android:name=".SplashActivity"
android:exported="true" />
<service
android:name=".autofillservice.MyAutofillService"
android:exported="true"
android:permission="android.permission.BIND_AUTOFILL">
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)