【问题标题】:INSTALL_PARSE_FAILED_MANIFEST_MALFORMED only on some devicesINSTALL_PARSE_FAILED_MANIFEST_MALFORMED 仅在某些设备上
【发布时间】:2021-02-17 22:39:05
【问题描述】:

我的 Android 应用无法在某些“随机”的旧 API 设备(低于 API 级别 25 的设备)上安装并出现以下错误:

INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

所以,基本上看起来…… API

我见过类似的问题,答案与小写包名有关。我已经有了。

有人有什么想法吗?

清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="128" android:versionName="1.2.8.0" package="com.vrgamestudio.thegame" android:targetSandboxVersion="2" android:installLocation="auto">
    <uses-sdk android:targetSdkVersion="29" />
    <application android:isGame="true" android:label="@string/ApplicationName" android:icon="@drawable/GameThumbnail" android:theme="@style/Theme.Splash">
        <activity android:name="TheGame.ActivityMain" android:alwaysRetainTaskState="true" android:launchMode="singleInstance" android:screenOrientation="fullSensor" android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="TheGame.ActivityTV" android:icon="@drawable/gamethumbnail" android:theme="@style/Theme.Leanback" android:banner="@drawable/banner320x180" android:alwaysRetainTaskState="true" android:launchMode="singleInstance" android:screenOrientation="fullSensor" android:configChanges="orientation|keyboard|keyboardHidden|screenSize|screenLayout">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-feature android:name="android.hardware.gamepad" android:required="false" />
    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    <uses-feature android:name="android.hardware.faketouch" android:required="false" />
    <uses-feature android:name="android.hardware.telephony" android:required="false" />
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <uses-feature android:name="android.hardware.nfc" android:required="false" />
    <uses-feature android:name="android.hardware.location.gps" android:required="false" />
    <uses-feature android:name="android.hardware.microphone" android:required="false" />
    <uses-feature android:name="android.hardware.sensor" android:required="false" />
    <uses-feature android:name="android.software.leanback" android:required="false" />
    <uses-feature android:name="android.hardware.type.television" android:required="false" />
    <uses-feature android:name="android.software.leanback_only" android:required="false" />
</manifest>

顺便说一句,我正在使用 Visual Studio 2019 和 MonoGame 3.7

【问题讨论】:

    标签: android api installation google-play monogame


    【解决方案1】:

    已解决并在此处发布答案:

    https://community.monogame.net/t/install-parse-failed-manifest-malformed-only-on-some-devices

    简而言之,答案是:

    在较旧的 api 版本上(

    活动名称属性的完全限定命名空间必须是 小写。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-08
      • 2011-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多