Blankj / Blankj/AndroidUtilCode

Android sdk 32 debug打包失败

Đang mở
#1,749 0 bình luận 0 reaction 1 người được giao Được @Blankj nhận Xem trên GitHub
bug
Ngôn ngữ chính
Java
Star
33.6k
Fork
10.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.