AndroidUtilCode
AndroidUtilCode copied to clipboard
Android sdk 32 debug打包失败
描述 Bug
使用目标target_sdk=32 进行debug打包报错 Task :app:processDebugAndroidTestManifest FAILED
编译报错如下
android:exported needs to be explicitly specified for <activity>. Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported` when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
- AndroidUtilCode 的版本:com.blankj:utilcodex:1.31.1
原因是 AndroidManifest 这个文件内的两个Activity没有设置 android:exported="true"
目前情况是debug打包失败 releas打包正常