Gradle Error The attribute applicatio@label=@string/app_name colides with another value
Thanks for reading this !
I am using Unity 5.5.2 Personal edition and have a simple game with admob plugin integrated. I am trying to build this with Build System = Gradle (from build settings screen)
Here I am getting weird error as shown below.
There is only one AndroidManifest.xml file at "\Assets\Plugins\Android\GoogleMobileAdsPlugin\" and the content of this file is as shown below
I am new to unity and not able to solve this - however I have tried few things but failed to solved. As one try, I modified said file content as shown in above but this did not work - got another error "No resource found that matches the given name (at 'label' with value '@string/app_name')."
Please help, what should I do to solve this - Try to be please be specific in your reply.
Thanks
Answer by ParthSConsultancy · Apr 26, 2017 at 07:36 PM
Hi, I am giving some more information here - Hope someone will help Below is the exact error message copied from console in Unity.
CommandInvokationFailure: Gradle build failed. C:/Program Files/Java/jdk1.8.0_121\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-2.14.jar" org.gradle.launcher.GradleMain "assembleRelease"
stderr[ D:\Unity\MyGame\Temp\gradleOut\src\main\AndroidManifest.xml:4:92-124 Error: Attribute application@label value=(@string/app_name) from AndroidManifest.xml:4:92-124 is also present at [:em-native-popup:] AndroidManifest.xml:13:9-37 value=(Native Popup). Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:4:3-13:17 to override.
FAILURE: Build failed with an exception.
-
Manifest merger failed : Attribute application@label value=(@string/app_name) from AndroidManifest.xml:4:92-124
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. ] stdout[ Incremental java compilation is an incubating feature. :preBuild UP-TO-DATE :preReleaseBuild UP-TO-DATE :checkReleaseManifest :preDebugBuild UP-TO-DATE :prepareEmNativePopupLibrary :prepareReleaseDependencies :compileReleaseAidl UP-TO-DATE :compileReleaseRenderscript UP-TO-DATE :generateReleaseBuildConfig UP-TO-DATE :mergeReleaseShaders UP-TO-DATE :compileReleaseShaders UP-TO-DATE :generateReleaseAssets UP-TO-DATE :mergeReleaseAssets :generateReleaseResValues UP-TO-DATE :generateReleaseResources UP-TO-DATE :mergeReleaseResources UP-TO-DATE :processReleaseManifest
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
:processReleaseManifest FAILED
BUILD FAILED