包名中的 Android Studio Manifest 合并错误

标签 android android-layout android-manifest

  • 什么地方出了错:
    任务“:app:processDebugManifest”执行失败。

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


  • 包="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>
    

    最佳答案

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

    关于包名中的 Android Studio Manifest 合并错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60290075/

    相关文章:

    android - 如何在改造中发送带有正文的 HTTP 删除?

    android - @id 和@android :id 之间的区别

    android - 为什么应用程序使用 "/layout-mdpi"即使手机显示是 "Normal-XHDPI"

    android - 如何在一个地方定义按钮背景并在整个应用程序中使用?

    java - 安卓 : ArrayList with Bitmap from assets

    android - Android Marshmallow (6.0) 上的 vibrate_when_ringing

    java - MyApplication 无法分配给 Activity

    java - InflateException : Binary XML file line #1: Error inflating class android.widget.RelativeLayout

    android - 是否可以根据Android版本指定不同的权限?

    android - 不断收到预启动报告错误 "Results not available. The devices could not be tested at this time."