小编Chr*_*era的帖子

清单合并失败并出现多个错误,请参阅日志(错误:任务'执行失败':app:processDebugManifest')

在我问之前我想声明我搜索了很多类似的线程,但没有一个工作.

我正在调试我的应用程序,出于某种原因,当我清理并重建我的项目时,我收到了错误:Manifest merger失败,出现多个错误,请参阅日志

在我的gradle控制台中,我检查并得到了这个:

C:\用户\克里斯\ AndroidStudioProjects\WizardCounter2 \应用\ SRC \主\的AndroidManifest.xml:6:5-44:16

错误:在AndroidManifest.xml上缺少元素活动的'name'键属性:6:5-44:16

C:\用户\克里斯\ AndroidStudioProjects\WizardCounter2 \程序\ SRC \主\ AndroidManifest.xml中

错误:验证失败,退出

这是我的清单:

<?xml version="1.0" encoding="utf-8"?>
Run Code Online (Sandbox Code Playgroud)

<activity
    android:allowBackup="true"
    android:icon="@drawable/counter_launch_icon"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
   >

    <activity
        android:name=".HomeScreen"
        android:label="@string/app_name"
        android:theme="@style/AppTheme.NoActionBar"
        android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".GameMenu"
        android:label="@string/title_activity_game_menu"
        android:theme="@style/AppTheme.NoActionBar"
        android:screenOrientation="portrait"
        android:value="HomeScreen"/>
    <activity
        android:name=".PlayerSelection"
        android:label="@string/title_activity_player_selection"
        android:value="PlayerSelection"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme.NoActionBar"
        >
    </activity>

    <support-screens

        android:smallScreens="true"
        android:normalScreens="true" />
</activity>
Run Code Online (Sandbox Code Playgroud)

而build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "com.gameapp.android.wizardcounter"
        minSdkVersion 9 …
Run Code Online (Sandbox Code Playgroud)

java xml android manifest gradle

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

标签 统计

android ×1

gradle ×1

java ×1

manifest ×1

xml ×1