繁体   English   中英

清单合并失败 android:exported

[英]Manifest merger failed android:exported

https://i.stack.imgur.com/OHfBH.png https://i.stack.imgur.com/Ma6Rc.png

嗨,我是 IntelliJ-idea 和 android 的新手,我遇到了这个错误,通过查看互联网,解决方案是添加android:exported="true"但我仍然得到同样的错误帮助!

您需要在启动器活动中设置android:exported="true" ,如果您的应用针对的是Android 12 ,则如下所示:

 <activity
        android:name=".YourLauncherActivity"
        android:exported="true"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM