android - 为什么会发生 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED ?

标签 android manifest

我运行我的应用程序后发生这种情况: pkg:/data/local/tmp/com.example.calculator.app 失败 [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]

我可能删除或更改了某些内容,但我不知道是什么...

我的 list :

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

有人有什么想法吗?

最佳答案

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

meta-data 需要 android:valueandroid:resource 属性。

关于android - 为什么会发生 INSTALL_PARSE_FAILED_MANIFEST_MALFORMED ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26787955/

相关文章:

java - Eclipse错误: Invalid signature file digest for Manifest main attributes on several projects

android - 从 preferences.xml 开始一个 Activity

android - 使用 InputStream 将 Intent 发送到媒体播放器应用程序

android - 如何删除未启动的 AVD 数据

android - 错误 : AGPBI: Program type already present: com. google.android.gms.auth.api.signin.internal.zzg

android - 动态调用一个类?

java - 我需要知道我的应用程序可以安装在外部存储器上的内容

android - 为什么我的应用程序请求 "prevent phone from sleeping"权限?

Maven Archiver 在 list 的类路径中添加奇怪的换行符

c# - 如果应用程序有应用程序 list ,如何在 C# 中以编程方式获取?