INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION:无法解析./base.apk:AndroidManifest.xml]

时间:2019-09-24 00:19:10

标签: xml apk android-manifest

我正在尝试传递apk文件进行测试。我在使用AndroidManifest.xml时遇到麻烦。当我尝试上传apk时,出现此错误:

  

Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION: Failed to parse /data/app/vmdl1270000233.tmp/base.apk: AndroidManifest.xml]

此XML在做错什么?

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:theme="@ref/0x01030006"
    android:versionCode="13"
    android:versionName="1.0.6"
    android:installLocation="2"
    package="pl.techland.dyingLight.CA"
    platformBuildVersionCode="22"
    platformBuildVersionName="5.1-1756733">

    <supports-screens
        android:anyDensity="true"
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true" />

    <application
        android:label="@ref/0x7f030000"
        android:icon="@ref/0x7f020000"
        android:debuggable="false">

        <activity
            android:screenOrientation="landscape"
            android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
            android:configChanges="density|keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|uiMode"
            android:resizeableActivity="false"
            android:label="@ref/0x7f030000"
            android:name="com.prime31.UnityPlayerNativeActivity"
            android:launchMode="2">

            <intent-filter>

                <action
                    android:name="android.intent.action.MAIN" />

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

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

            <meta-data
                android:name="unityplayer.UnityActivity"
                android:value="true" />

            <meta-data
                android:name="unityplayer.ForwardNativeEventsToDalvik"
                android:value="true" />
        </activity>

        <activity
            android:name="com.prime31.EtceteraProxyActivity"
            android:configChanges="0xd80" />

        <activity
            android:name="com.prime31.WebViewActivity"
            android:configChanges="0x4a0" />

        <activity
            android:name="com.prime31.P31VideoPlayerActivity"
            android:configChanges="0x4b0" />

        <receiver
            android:name="com.prime31.AlarmManagerReceiver" />

        <meta-data
            android:name="com.prime31.EtceteraPlugin"
            android:value="UnityPlayerActivityProxy" />


<meta-data android:name="com.samsung.android.vr.application.mode" android:value="vr_only"/>
    </application>

    <uses-sdk
        android:minSdkVersion="21"
        android:targetSdkVersion="22" />

    <uses-permission
        android:name="android.permission.INTERNET" />

    <uses-feature
        android:glEsVersion="0x00030001" />

    <uses-permission
        android:name="android.permission.ACCESS_NETWORK_STATE" />

    <uses-permission
        android:name="android.permission.ACCESS_WIFI_STATE" />

    <uses-permission
        android:name="com.android.vending.CHECK_LICENSE" />

    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.touchscreen.multitouch"
        android:required="false" />

    <uses-feature
        android:name="android.hardware.touchscreen.multitouch.distinct"
        android:required="false" />

</manifest>

1 个答案:

答案 0 :(得分:0)

也许您的包裹名称错误? 您来自com.prime31 ....和pacage的活动是pl.techland.dyingLight.CA