包名称中的 Android Studio 清单合并错误 [英] Android Studio Manifest merger error in package name

查看:73
本文介绍了包名称中的 Android Studio 清单合并错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 出了什么问题:任务:app:processDebugManifest"执行失败.<块引用>

    清单合并失败:位于 AndroidManifest.xml:3:5-40 位置的包名称."应至少包含一个."(点)字符

package="com.example.myapplication"

<申请机器人:allowBackup =真"android:icon="@mipmap/ic_launcher"机器人:标签=塔比布"android:roundIcon="@mipmap/ic_launcher_round"android:supportsRtl="true"android:theme="@style/AppTheme"><activity android:name=".flipview"/><activity android:name=".user_row"/><activity android:name=".Chat"/><activity android:name=".doclist"/><activity android:name=".chat_items"/><活动android:name=".忘记密码"android:theme="@style/Theme.AppCompat.Light.NoActionBar"/><活动android:name=".SignUp"android:theme="@style/Theme.AppCompat.Light.NoActionBar"/><活动android:name=".登录"android:theme="@style/Theme.AppCompat.Light.NoActionBar"><意图过滤器><action android:name="android.intent.action.MAIN"/><category android:name="android.intent.category.LAUNCHER"/></意图过滤器><意图过滤器><action android:name="android.intent.action.VIEW"/><category android:name="android.intent.category.DEFAULT"/><category android:name="android.intent.category.BROWSABLE"/><数据机器人:方案=http"android:host="www.tabeeb-app.com"android:pathPrefix="/tabeeb"/></意图过滤器></活动><activity android:name=".MainActivity"/></应用程序></清单>

解决方案

转到模块的build.gradle"文件 -> defaultConfig" -> applicationId"并将其值更改为您的根包名称:com.example.myapplication".

  • What went wrong: Execution failed for task ':app:processDebugManifest'.

    Manifest merger failed : Package name ' ' at position AndroidManifest.xml:3:5-40 should contain at least one '.' (dot) character

package="com.example.myapplication"

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.myapplication">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="Tabeeb"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".flipview"/>
        <activity android:name=".user_row" />
        <activity android:name=".Chat" />
        <activity android:name=".doclist" />
        <activity android:name=".chat_items" />
        <activity
            android:name=".Forgotpassword"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
        <activity
            android:name=".SignUp"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar" />
        <activity
            android:name=".Login"
            android:theme="@style/Theme.AppCompat.Light.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:scheme="http"
                    android:host="www.tabeeb-app.com"
                    android:pathPrefix="/tabeeb" />
            </intent-filter>
        </activity>
        <activity android:name=".MainActivity" />
    </application>

</manifest>

解决方案

Go to the module's "build.gradle" file -> "defaultConfig" -> "applicationId" and change it's value to your root package name: "com.example.myapplication".

这篇关于包名称中的 Android Studio 清单合并错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆