安装错误:包括INSTALL_PARSE_FAILED_MANIFEST_MALFORMED码(In

2019-09-30 04:23发布

好了,所以我一直在寻找和搜索,并没有发现任何帮助。 当我启动AVD,它说:

No Launcher activity found!
The launch will only sync the application package on the device!

一旦仿真器打开,这上来。

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

我敢肯定,我的AndroidManifest是正确的:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mshaw.avanos"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-sdk android:minSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    <activity
        android:name=".AvanosActivity"
        android:label="@string/app_name"
        <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.CALL" />
    </intent-filter>
    </activity>
</application>

有什么问题?

Answer 1:

你的applicationactivity标签没有结束>

尝试:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mshaw.avanos"
android:versionCode="1"
android:versionName="1.0" >

<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-sdk android:minSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name">
    <activity
    android:name=".AvanosActivity"
    android:label="@string/app_name">
    <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.CALL" />
    </intent-filter>
    </activity>
</application>


文章来源: Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED code included