AndroidManifest being being overwritten my admob

Hi

Firstly, please forgive me, I’m proficient in unity IOS but a real novice in unity android.

I have integrated adcolony in to my game and have the following AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.jirbo.unitytest"
      android:versionCode="1"
      android:versionName="1.0">
    <!-- TODO: Replace the 'package' value above to reflect your app's package id. -->

    <!-- NOTE: Adjust minSDKVersion and targetSdkVersion as desired. -->
    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14" />

    <!-- NOTE: You must have at least these four permissions for AdColony. -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

    <application android:label="@string/app_name" android:icon="@drawable/app_icon" android:hardwareAccelerated="true">
        <activity android:name="com.unity3d.player.UnityPlayerNativeActivity"
                  android:configChanges="keyboardHidden|orientation|screenSize"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

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

        <!-- NOTE: You must include these three activity specifications for AdColony. -->
        <activity android:name="com.jirbo.adcolony.AdColonyOverlay"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
        <activity android:name="com.jirbo.adcolony.AdColonyFullscreen"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />
        <activity android:name="com.jirbo.adcolony.AdColonyBrowser"
          android:configChanges="keyboardHidden|orientation|screenSize"
          android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" />

    </application>
</manifest>

That all works fine, my problem is when I try to also integrate AdMob in to my project aswell, it totally overwrites the android manifest file and causes adcolony to crash the app.

I have no idea how to edit the manifest file without causing the app to crash. Has anyone done this?

I am using the official AdMob plugin

Any help will be appreciated.

Thanks

Anyone?

You don’t overwrite the AndroidManifest.xml with one in the .unitypackage. You edit your current one and add needed stuff to there

 <!-- 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>

Thanks!