【发布时间】:2021-11-24 04:59:15
【问题描述】:
我已经厌倦了堆栈溢出的所有解决方案,但我仍然无法解决这个错误。
这是我的清单文件
xmlns:tools="http://schemas.android.com/tools"
package="com.example.nativecheckoutsdk">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<application
tools:replace="android:allowBackup"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.NativeCheckoutSDK">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
**Merged Manifest 中的错误如下 **
*合并错误:错误:需要为 .当相应组件定义了 Intent 过滤器时,面向 Android 12 及更高版本的应用需要为 android:exported 指定显式值。有关详细信息,请参阅 https://developer.android.com/guide/topics/manifest/activity-element#exported。 NativeCheckoutSDK.app 主清单(此文件)
错误:需要明确指定 android:exported 为 .当相应组件定义了 Intent 过滤器时,面向 Android 12 及更高版本的应用需要为 android:exported 指定显式值。有关详细信息,请参阅 https://developer.android.com/guide/topics/manifest/activity-element#exported。 NativeCheckoutSDK.app 主清单(此文件)
【问题讨论】:
-
这个问题你解决了吗?
-
下面提供的答案帮助我解决了错误@c-an
标签: java android android-studio