Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
安装\u解析\u失败\u清单\u安装应用程序android时出现格式错误_Android_Android Manifest - Fatal编程技术网

安装\u解析\u失败\u清单\u安装应用程序android时出现格式错误

安装\u解析\u失败\u清单\u安装应用程序android时出现格式错误,android,android-manifest,Android,Android Manifest,在尝试安装我的应用程序时,我面临安装\解析\失败\清单\格式错误 对于堆栈溢出错误,我已经介绍了所有可用的解决方案。我的mainfest文件包名称中没有大写字母 有人能指出问题所在吗 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.punchtech"> <

在尝试安装我的应用程序时,我面临安装\解析\失败\清单\格式错误

对于堆栈溢出错误,我已经介绍了所有可用的解决方案。我的mainfest文件包名称中没有大写字母

有人能指出问题所在吗

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

    <uses-sdk
        android:minSdkVersion="17"
        android:targetSdkVersion="25" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" />

    <application
        android:name="com.punchtech.AppController"
        android:allowBackup="true"
        android:icon="@mipmap/new_logo"
        android:label="@string/app_name"
        android:theme="@style/LoginTheme">

        <activity
            android:name="com.punchtech.login_signup.MainActivity"
            android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity android:name="com.punchtech.login_signup.Login_signup_Mainscreen" />

        <activity android:name="com.punchtech.login_signup.Login_screen" />

        <activity android:name="com.punchtech.login_signup.Signup_screen" />

        <activity
            android:name="com.punchtech.Bottombar_main"
            android:theme="@style/ForFragment"
            android:windowSoftInputMode="adjustPan" />

        <activity android:name="com.punchtech.Main_Post" />

        <activity android:name="com.punchtech.User_profile_all.Jump_userProfile" />

        <activity
            android:name="com.punchtech.CreatePunch.image_search_api"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.CreatePunch.Tag_selection_create_punch"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.CreatePunch.Create_punch"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.CreatePunch.select_Community"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.Home_communiy_all.tag_selection_main"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.User_profile_all.setting_user_profile"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.User_profile_all.user_profile_follow"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.User_profile_all.user_profile_edit"
            android:theme="@style/create_community" />

        <activity android:name="com.punchtech.Home_communiy_all.community_view_home_community" />

        <activity
            android:name="com.punchtech.Comment_all.Comment_post"
            android:theme="@style/create_community" />

        <activity
            android:name="com.punchtech.Home_communiy_all.Create_Community_main"
            android:theme="@style/create_community" />

        <activity
            android:name="com.facebook.FacebookActivity"
            android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />

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

        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

    </application>

</manifest>

您的元数据不正确:

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

正如api中所述,元数据标记是一个名称-值对,需要一个值或资源。例如,它必须是:

<meta-data android:name="android.support.multidex.MultiDexApplication"
android:value="@string/yourValue" />



更改此设置,从设备中删除您的应用,清理项目并重新安装。

您是否有一个打开的
标记?是的,我添加了标记,请使用项目中完全相同的清单编辑您的问题好的,我编辑了文件内容我不确定
是否正确,我认为元数据需要一个值或资源。谢谢!我把那个标签改成了……
 <meta-data android:name="android.support.multidex.MultiDexApplication"
    android:resource="@string/yourValue" />