Blankj / Blankj/AndroidUtilCode

Android sdk 32 debug打包失败

Aperta
#1,749 0 commenti 0 reazioni 1 assegnatario Rivendicata da @Blankj Vedi su GitHub
bug
Lingua principale
Java
Stelle
33.6k
Fork
10.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 描述 Bug

使用目标target_sdk=32 进行debug打包报错 Task :app:processDebugAndroidTestManifest FAILED

编译报错如下
```
android:exported needs to be explicitly specified for . 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](https://github.com/Blankj/AndroidUtilCode/tree/master/lib/utilcode/src/main/AndroidManifest.xml)
这个文件内的两个Activity没有设置 android:exported="true"

目前情况是debug打包失败 releas打包正常

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.