Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED code included

旧城冷巷雨未停 提交于 2019-12-11 04:19:48

问题


Okay, so I have been searching and searching and have not found any help. When I launch the AVD, it says:

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

Once the emulator opens, this comes up.

Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

I'm pretty sure that my AndroidManifest is correct:

<?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>

What's the problem?


回答1:


Your application and activity tags have no closing >.

Try:

<?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>


来源:https://stackoverflow.com/questions/11174275/installation-error-install-parse-failed-manifest-malformed-code-included

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!