AndroidUtilCode icon indicating copy to clipboard operation
AndroidUtilCode copied to clipboard

Android sdk 32 debug打包失败

Open Gaojianan2016 opened this issue 2 years ago • 0 comments

描述 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打包正常

Gaojianan2016 avatar Mar 09 '23 06:03 Gaojianan2016