小编Pro*_*eus的帖子

即使我已经指定了“android:exported”,也需要为 <activity> 显式指定它

我正在尝试 DJI SDK,并正在按照本教程了解如何将 SDK 集成到我创建的 Android Studio 项目中。我已将所有内容复制到文件名,唯一的区别是我在MainActivity.java.

当我尝试构建项目时出现以下错误:

> Task :app:processDebugMainManifest FAILED
[path to projects]\AndroidStudioProjects\ImportSDKDemo\app\src\main\AndroidManifest.xml Error:
    android:exported needs to be explicitly specified for <activity>. 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.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.


Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed : android:exported needs to be …
Run Code Online (Sandbox Code Playgroud)

android android-studio dji-sdk

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-studio ×1

dji-sdk ×1