【发布时间】:2022-11-10 15:03:21
【问题描述】:
我不擅长英语,所以我使用翻译。对不起。
我正在做一个在移动设备上控制无人机的项目,我将找到一个名为dronekit的模块并使用它,但是当我应用它时,会出现同样的错误。
Manifest merger failed : android:exported needs to be explicitly specified for <service>. 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
我的清单:
<activity
android:name=".MainActivity"
android:exported="true"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
我的 build.gradle(:app):
android {
...
compileSdk 31
defaultConfig {
...
minSdk 23
targetSdk 31
...
}
dependencies {
...
implementation files('../libs/dronekit-android.3.0.2.aar')
}
如您所见, android:exported 已经在其中。但是“合并清单”中有一个错误。请帮我。
【问题讨论】:
标签: java android-studio dronekit dronekit-android