Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/203.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
将旧的Android Eclipse项目刷新到Android Studio,但失败[安装\解析\失败\清单\格式错误]_Android_Eclipse_Android Studio_Installation_Manifest - Fatal编程技术网

将旧的Android Eclipse项目刷新到Android Studio,但失败[安装\解析\失败\清单\格式错误]

将旧的Android Eclipse项目刷新到Android Studio,但失败[安装\解析\失败\清单\格式错误],android,eclipse,android-studio,installation,manifest,Android,Eclipse,Android Studio,Installation,Manifest,有些人也有同样的失败,但他们的解决方案并不能解决我的问题。我得到这个失败: 包装:/data/local/tmp/ich.gamebank 失败[安装\解析\失败\清单\格式错误] Android Studio要求卸载现有应用程序时提供帮助,但也失败了: 设备外壳命令:pm uninstall ich.gamebank 删除\失败\内部\错误 顺便说一下,这个应用程序还没有安装 这是我的AndroidManifest.xml文件,包名没有大写字母 <?xml version="1.0" e

有些人也有同样的失败,但他们的解决方案并不能解决我的问题。我得到这个失败:

包装:/data/local/tmp/ich.gamebank
失败[安装\解析\失败\清单\格式错误]

Android Studio要求卸载现有应用程序时提供帮助,但也失败了:

设备外壳命令:pm uninstall ich.gamebank
删除\失败\内部\错误

顺便说一下,这个应用程序还没有安装

这是我的AndroidManifest.xml文件,包名没有大写字母

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ich.gamebank"
    android:versionCode="12"
    android:versionName="1.5" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="23" />

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

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="ich.gamebank.GameBank"
            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="ich.gamebank.SpielerEinstellung"
            android:label="@string/title_activity_spieler_einstellung" >
        </activity>
        <activity
            android:name="ich.gamebank.SpielerAuswahlEinstellungen"
            android:label="@string/title_activity_spieler_auswahl_einstellungen" >
        </activity>
        <activity
            android:name="ich.gamebank.AuswahlBank"
            android:label="@string/title_activity_auswahl_bank" >
        </activity>
        <activity
            android:name="ich.gamebank.Bezahlen"
            android:label="@string/title_activity_bezahlen" >
        </activity>
        <activity
            android:name="ich.gamebank.Kontostand"
            android:label="@string/title_activity_kontostand" >
        </activity>
        <activity
            android:name="ich.gamebank.SpeicherpunktVerwaltung"
            android:label="@string/title_activity_speicherpunkt_verwaltung" >
        </activity>
        <activity android:name="org.achartengine.GraphicalActivity" />
        <!-- <activity
           android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /> -->

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

        <activity
            android:name="ich.gamebank.GraphMenu"
            android:label="@string/title_activity_graph_menu" >
        </activity>
    </application>

</manifest>

我希望有人能帮忙,谢谢

编辑:我不知道为什么,但是当我删除这行时,问题似乎得到了解决:

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

如果有人有同样的问题,我留下了这个帖子

编辑:我不知道为什么,但当我删除这行时,问题似乎得到了解决:

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

如果有人有同样的问题,我留下了这个帖子

这是因为
metadata
元素需要
android:name
android:value
android:resource
属性之一。缺少必需的属性会将清单标记为格式错误