2016-10-01 60 views
1

嗨我做了一個使用googleadmob的安卓遊戲。我決定將它移植到亞馬遜應用商店,並使用遊戲圈。他們都有自己的Android清單,所以在創建時會產生錯誤。我如何將abmob清單組合到遊戲圈中。請指教,因爲我不知道xml!合併Android Manifest

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> 
+0

亞馬遜不支持谷歌的AdMob,並有一些問題必須檢查 –

回答

0

您的合併清單的東西這個樣子的,

<?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> 
+0

謝謝你的靈魂。您剛剛確認了亞馬遜App Store版本! – galaxyacetype0

+0

很高興幫助你:) – Saveen