- Home /
OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library
I have a plugin named Soomla for Facebook/Twitter which works fine and I am trying to integrate Google Mobile Ads for my project by a paid plugin named "Google Mobile Ad" not Ads, it is "Ad", kind of confusing yes. I have 6 AndroidManifest.xml files in my project.
When I try to get a build a window pops up: "Unable to merge android manifests. See the console for more details"
1 warning:
OBSOLETE - Providing Android resources in Assets/Plugins/Android/res is deprecated, please move your resources to an Android Library
2 errors:
1)
Error: [Temp\StagingArea\AndroidManifest-main.xml:5, E:\vroad\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:10] Trying to merge incompatible /manifest/application/meta-data[@name=com.google.android.gms.version] element:
UnityEditor.HostView:OnGUI()
2)
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. C:\Program Files\Java\jdk1.7.0_17\bin\java.exe -Xmx2048M
-Dcom.android.sdkmanager.toolsdir="C:/Users/Lenny/AppData/Local/Android/android-sdk\tools"
-Dfile.encoding=UTF8 -jar "C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
stderr[ Error: [Temp\StagingArea\AndroidManifest-main.xml:5, E:\vroad\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:10] Trying to merge incompatible /manifest/application/meta-data[@name=com.google.android.gms.version] element:
]
stdout[ [Temp\StagingArea\AndroidManifest-main.xml:19, E:\vroad\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:12] Skipping identical /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element. ]
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()
By browsing through the internet, I think the solution is fixing the warning. But I am totally a noob for these integrations, I couldn't fix it. I need someone to explain me simply how to get rid of this problem. Thanks a lot already!