android manifest merge issue unity

Updated on July 28, 2018 in [A] Brackeys Courses
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on July 28, 2018

hey , i have built games taking help from Brackeys tutorials but now after building my own games i am having problem with adding Admob for having ads on my game. I have added GoogleMobileAds  unity package file and a script “admob” for controlling ads. now after doing that when i click to build my game it gives an error showing that android manifest merge failed.

 

error from console :-

CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files/Java/jdk1.8.0_171\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir=”C:/Users/Khanm/AppData/Local/Android/Sdk/tools_2\tools” -Dfile.encoding=UTF8 -jar “D:\unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” –

stderr[

]
stdout[
Warning: [Temp\StagingArea\AndroidManifest-main.xml:12, D:\New Unity Project\Temp\StagingArea\android-libraries\android.arch.lifecycle.runtime-1.0.0\AndroidManifest.xml:3] Main manifest has <uses-sdk android:targetSdkVersion=’23’> but library uses targetSdkVersion=’26’
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-compat-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-fragment-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
[Temp\StagingArea\AndroidManifest-main.xml, D:\New Unity Project\Temp\StagingArea\android-libraries\com.android.support.support-v4-26.1.0\AndroidManifest.xml:6] Skipping identical /manifest/application/meta-data[@name=android.support.VERSION] element.
Warning: [Temp\StagingArea\AndroidManifest-main.xml:12, D:\New Unity Project\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:2] Main manifest has <uses-sdk android:targetSdkVersion=’23’> but library uses targetSdkVersion=’26’
]
exit code: 1
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.HostView:OnGUI()

 

i treied changing things from player settings as well as the androidManifest.xml but nothing works and i am not good at unity so i am having issues understanding some stuff . any further info if required i will share but please help.

  • Liked by
Reply