将targetSdkVersion更改为31后,我收到以下错误:
Task :app:processReleaseMainManifest FAILED
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.
我试过添加,但仍然不起作用
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
<application android:exported="true" />
</edit-config>
1条答案
按热度按时间11dmarpk1#
用于修复它的脚本: