M
M
Maxim Kapralov2018-02-20 09:06:05
Android
Maxim Kapralov, 2018-02-20 09:06:05

How to solve the problem of Colliding Attributes?

Good afternoon!
I'm making a small toy for android, added two assets - Appodeal SDK for advertising and Easy Mobile Lite , after which the project stopped building, giving an error Gradle Error: Colliding Attributes, the details of the error are under the spoiler. Please help me solve the problem, I have no experience in Android development, and I don’t even quite understand what the problem is and where to dig

Error Description
CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Java/jdk1.8.0_161\bin\java.exe -classpath "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"

stderr[
C:\work\pinta\Temp\gradleOut\src\main\AndroidManifest.xml:4:50-82 Error:
  Attribute [email protected] value=(@string/app_name) from AndroidManifest.xml:4:50-82
  is also present at [:em-native-popup:] AndroidManifest.xml:13:9-37 value=(Native Popup).
  Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:4:3-82:17 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processReleaseManifest'.
> Manifest merger failed : Attribute [email protected] value=(@string/app_name) from AndroidManifest.xml:4:50-82
  	is also present at [:em-native-popup:] AndroidManifest.xml:13:9-37 value=(Native Popup).
  	Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:4:3-82:17 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

PS The problem appeared after the addition of Easy Mobile, with one Appodeal SDK everything is going with a bang. Moreover, if you remove Easy Mobile - the error remains, and is treated only by a complete removal and re-import of the Appodeal SDK - then everything is assembled again.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2018-02-20
@Byrnane

> How to solve the problem of Colliding Attributes?
Probably, read the error message and take the measures that are described there, don't you?!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question