合并Android清单

合并Android清单,android,xml,android-manifest,Android,Xml,Android Manifest,嗨,我制作了一个android游戏,它使用GoogledMob。我已经决定将其移植到亚马逊应用商店,并使用game circle。它们都有自己的android清单,因此在构建时会产生错误。如何将abmob清单合并到游戏循环1中。请告知,因为我不知道xml Admob舱单 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/andr

嗨,我制作了一个android游戏,它使用GoogledMob。我已经决定将其移植到亚马逊应用商店,并使用game circle。它们都有自己的android清单,因此在构建时会产生错误。如何将abmob清单合并到游戏循环1中。请告知,因为我不知道xml

Admob舱单

 <?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.example.admobtest" android:versionName="1.0" android:versionCode="1">

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

  <!-- Google Mobile Ads Permissions -->

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

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

  <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">

    <!-- meta-data tag for Google Play services -->

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

    <activity android:name="com.unity3d.player.UnityPlayerProxyActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

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

      <intent-filter>

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

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

      </intent-filter>

    </activity>

    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

    </activity>

    <activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

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

      <meta-data android:name="android.app.lib_name" android:value="unity" />

    </activity>

    <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

    </activity>

    <!-- Google Mobile Ads Activity -->

      <activity android:name="com.google.android.gms.ads.AdActivity"

              android:label="@string/app_name"

              android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

    </activity>

  </application>

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

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

</manifest>

游戏圈清单

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

    android:versionCode="1"

    android:versionName="1.0">

    <supports-screens

        android:smallScreens="true"

        android:normalScreens="true"

        android:largeScreens="true"

        android:xlargeScreens="true"

        android:anyDensity="true"/>

    <application

        android:icon="@drawable/app_icon"

        android:label="@string/app_name"

        android:debuggable="true">


        <!-- Unity Activities -->

        <activity android:name="com.unity3d.player.UnityPlayerProxyActivity"

                  android:label="@string/app_name"

                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

            <intent-filter>

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

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

            </intent-filter>

        </activity>

        <activity android:name="com.unity3d.player.UnityPlayerActivity"

                  android:label="@string/app_name"

                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

        </activity>

        <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"

                  android:label="@string/app_name"

                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

            <meta-data android:name="android.app.lib_name" android:value="unity" />

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

        </activity>

        <activity android:name="com.unity3d.player.VideoPlayer"

                  android:label="@string/app_name"

                  android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

        </activity>

        <!-- GameCircle Dependencies -->

        <receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver">

        <intent-filter>

        <action android:name="com.amazon.inapp.purchasing.NOTIFY" android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY" />

        </intent-filter>

        </receiver>

        <activity

            android:name="com.amazon.ags.html5.overlay.GameCircleUserInterface"

            android:theme="@style/GCOverlay" >

        </activity>

        <activity

            android:name="com.amazon.identity.auth.device.authorization.AuthorizationActivity"
            android:allowTaskReparenting="true"

            android:launchMode="singleTask"

            android:theme="@android:style/Theme.NoDisplay" >

            <intent-filter>

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

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

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

                <data

                    android:host="bundle id here"

                    android:scheme="amzn" />

            </intent-filter>

        </activity>

        <receiver

            android:name="com.amazon.identity.auth.device.authorization.PackageIntentReceiver"
            android:enabled="true" >

            <intent-filter>

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

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

                <data android:scheme="package" />

            </intent-filter>

        </receiver>

        <!-- META-DATA -->   

    </application>

    <!-- PERMISSIONS -->

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

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

</manifest>

您的合并清单如下所示

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
android:installLocation="preferExternal" 
package="com.example.admobtest" 
android:versionName="1.0" android:versionCode="1">

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

 <!-- Google Mobile Ads Permissions -->

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

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

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

<supports-screens

    android:smallScreens="true"

    android:normalScreens="true"

    android:largeScreens="true"

    android:xlargeScreens="true"

    android:anyDensity="true"/>

    <!-- Google Mobile Ads Permissions -->

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

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

   <application 
   android:icon="@drawable/app_icon" 
   android:label="@string/app_name" 
   android:debuggable="false">

<!-- meta-data tag for Google Play services -->

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

<activity android:name="com.unity3d.player.UnityPlayerProxyActivity" 
android:label="@string/app_name" 
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

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

  <intent-filter>

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

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

  </intent-filter>

</activity>

<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<!-- Google Mobile Ads Activity -->

  <activity android:name="com.google.android.gms.ads.AdActivity"

          android:label="@string/app_name"

          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

</activity>

 <activity

        android:name="com.amazon.ags.html5.overlay.GameCircleUserInterface"

        android:theme="@style/GCOverlay" >

    </activity>

    <!-- GameCircle Dependencies -->

    <receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver">

    <intent-filter>

    <action android:name="com.amazon.inapp.purchasing.NOTIFY" android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY" />

    </intent-filter>

    </receiver>

      <activity

        android:name="com.amazon.identity.auth.device.authorization.AuthorizationActivity"
        android:allowTaskReparenting="true"

        android:launchMode="singleTask"

        android:theme="@android:style/Theme.NoDisplay" >

        <intent-filter>

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

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

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

            <data

                android:host="bundle id here"

                android:scheme="amzn" />

        </intent-filter>

    </activity>

    <receiver

        android:name="com.amazon.identity.auth.device.authorization.PackageIntentReceiver"
        android:enabled="true" >

        <intent-filter>

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

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

            <data android:scheme="package" />

        </intent-filter>

    </receiver>
    </application>

    </manifest>

您的合并清单如下所示

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
android:installLocation="preferExternal" 
package="com.example.admobtest" 
android:versionName="1.0" android:versionCode="1">

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

 <!-- Google Mobile Ads Permissions -->

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

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

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

<supports-screens

    android:smallScreens="true"

    android:normalScreens="true"

    android:largeScreens="true"

    android:xlargeScreens="true"

    android:anyDensity="true"/>

    <!-- Google Mobile Ads Permissions -->

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

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

   <application 
   android:icon="@drawable/app_icon" 
   android:label="@string/app_name" 
   android:debuggable="false">

<!-- meta-data tag for Google Play services -->

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

<activity android:name="com.unity3d.player.UnityPlayerProxyActivity" 
android:label="@string/app_name" 
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

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

  <intent-filter>

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

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

  </intent-filter>

</activity>

<activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<activity android:name="com.unity3d.player.UnityPlayerNativeActivity" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" >

</activity>

<!-- Google Mobile Ads Activity -->

  <activity android:name="com.google.android.gms.ads.AdActivity"

          android:label="@string/app_name"

          android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen">

</activity>

 <activity

        android:name="com.amazon.ags.html5.overlay.GameCircleUserInterface"

        android:theme="@style/GCOverlay" >

    </activity>

    <!-- GameCircle Dependencies -->

    <receiver android:name="com.amazon.inapp.purchasing.ResponseReceiver">

    <intent-filter>

    <action android:name="com.amazon.inapp.purchasing.NOTIFY" android:permission="com.amazon.inapp.purchasing.Permission.NOTIFY" />

    </intent-filter>

    </receiver>

      <activity

        android:name="com.amazon.identity.auth.device.authorization.AuthorizationActivity"
        android:allowTaskReparenting="true"

        android:launchMode="singleTask"

        android:theme="@android:style/Theme.NoDisplay" >

        <intent-filter>

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

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

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

            <data

                android:host="bundle id here"

                android:scheme="amzn" />

        </intent-filter>

    </activity>

    <receiver

        android:name="com.amazon.identity.auth.device.authorization.PackageIntentReceiver"
        android:enabled="true" >

        <intent-filter>

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

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

            <data android:scheme="package" />

        </intent-filter>

    </receiver>
    </application>

    </manifest>


amazon不支持google admob并且有一些问题必须检查amazon不支持google admob并且有一些问题必须检查谢谢你善良的灵魂。你刚刚确认了亚马逊应用商店的版本!很高兴帮助你:)谢谢你善良的灵魂。你刚刚确认了亚马逊应用商店的版本!很高兴帮助您:)