【发布时间】:2019-12-07 05:13:28
【问题描述】:
我在运行我的应用程序后发生了这种情况: 包:/data/local/tmp/com.example.calculator.app 失败 [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>
有人有什么想法吗?
【问题讨论】:
-
粘贴你的 logcat ,看看是什么导致了这个错误