Cannot read packageName from AndroidManifest.xml

前端 未结 14 1083
情歌与酒
情歌与酒 2020-12-15 19:52

I have errors in my android manifest file:

Error:Cannot read packageName from C:\\Users\\brandon\\AndroidStudioProjects\\MineDodge2\\app\\src\\main\\AndroidM         


        
相关标签:
14条回答
  • 2020-12-15 20:38
    <activity
            android:name="com.example.brandon.MineDodge.Splash" />
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
    </application>
    

    change it to--

      <activity
            android:name="com.example.brandon.MineDodge.Splash" />
             <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
    </application>
    
    0 讨论(0)
  • 2020-12-15 20:39

    try this ,

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.brandon.MineDodge">
    
        <application
            android:icon="@drawable/launchicon"
            android:label="@string/app_name"
            android:theme="@style/AppTheme">
    
            <activity
                android:name=".MainActivity"
                android:screenOrientation="portrait"
                android:theme="@style/AppBaseThemeTP">
    
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    
        <activity
            android:name=".Splash"
            android:screenOrientation="portrait"
            android:theme="@style/AppBaseThemeTP" >
        </activity>
    
        </application>
        </manifest>
    
    0 讨论(0)
提交回复
热议问题