2013-03-06 153 views
0

我知道,它的一個非常普遍的問題,但我想夠了,結束了這個錯誤,我下載並嘗試安裝應用程序。錯誤安裝,安裝的APK失敗install_parse_failed_manifest_malformed

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.helloandroid.android.newsdroid"> 
<application android:icon="@drawable/icon"> 
    <activity class=".FeedsList" android:label="@string/app_name"> 
<intent-filter> 
    <action android:value="android.intent.action.MAIN" /> 
    <category android:value="android.intent.category.LAUNCHER" /> 
    </intent-filter> 
    </activity> 
    <activity class=".URLEditor" android:label="@string/url_editor" /> 
    <activity class=".ArticlesList" android:label="@string/articles_list" /> 
    </application> 
    </manifest> 
+0

這不是有效的XML,因爲您缺少''標籤。這甚至不應該編譯。 – CommonsWare 2013-03-06 14:28:55

+0

對不起,我錯過了粘貼它 – user1603198 2013-03-06 14:35:08

回答

0

請按照下面的格式。

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

    <uses-sdk 
     android:minSdkVersion="8" 
     android:targetSdkVersion="17" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/ic_launcher" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 
     <activity 
      android:name="com.example.abc.ABC" 
      android:label="@string/app_name" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 
相關問題