2014-11-06 55 views
0

我后,我跑我的应用程序这个occours: PKG:/data/local/tmp/com.example.calculator.app 失败[INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]为什么INSTALL_PARSE_FAILED_MANIFEST_MALFORMED发生?

我可能删除或更改的东西,我不知道是什么...

我的清单:

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

    <application 

     android:icon="@drawable/studenticon128" 
     android:label="@string/app_name" 
     android:theme="@style/SelectedStyle" > 
     <activity 
      android:theme="@style/SelectedStyle" 
      android:name="com.example.calculator.app.MainScreen" 
      android:label="@string/app_name" > 
      > 
      <meta-data android:name="android.support.UI_OPTIONS" 
       /> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

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


     <activity 

      android:uiOptions="splitActionBarWhenNarrow" 
      android:name="com.example.calculator.app.Analysis" 
      android:label="@string/app_name" 

      android:parentActivityName="com.example.calculator.app.MainScreen"> 
      <meta-data 
       android:name="android.support.PARENT_ACTIVITY" 
       android:value="com.example.calculator.app.MainScreen" 
       /> 
      <meta-data android:name="android.support.UI_OPTIONS" 
       android:value="splitActionBarWhenNarrow"/> 
      <intent-filter> 
       <action android:name="android.intent.action.ANALYSIS" /> 

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


    </application> 

</manifest> 

任何想法的人?

+0

粘贴你的logcat,看看是什么导致了这个错误 – 2014-11-06 19:44:45

+0

我的logcat是空的。 – 2014-11-06 20:07:36

回答

1

你只需要在第一个活动

+0

我删除了“>”号但它没有解决问题 – 2014-11-06 20:00:12

1
<meta-data android:name="android.support.UI_OPTIONS" 
      /> 

meta-data去掉一个 “>” 需要一个android:valueandroid:resource属性。

+0

谢谢你解决了这个问题! – 2014-11-06 20:15:43