Blankj / AndroidUtilCode

:fire: Android developers should collect the following utils(updating).
https://blankj.com/2016/07/31/android-utils-code/
Apache License 2.0
33.32k stars 10.69k forks source link

android 12 碰到的问题 #1559

Open Xufei2 opened 3 years ago

Xufei2 commented 3 years ago

Android12新特性未兼容

Manifest merger 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.

toutoumu commented 2 years ago

四大组件 都加一下 android:exported

PengHaiZhuo commented 2 years ago

我也碰到了这个问题,我使用的版本是1.26.0,更新后问题解决了。 随后我查看了1.27.0的配置文件,已经添加上了

<service
    android:name="com.blankj.utilcode.util.MessengerUtils$ServerService"
    android:exported="false">
    <intent-filter>
        <action android:name="${applicationId}.messenger" />
    </intent-filter>
</service>
zhaoxiuyu commented 2 years ago

第三方库和SDK怎么解决

gcd1234 commented 7 months ago

第三方库和SDK怎么解决 最后有解决方案吗?