Geethu
Geethu

Reputation: 1616

Attribute application@label value=(@string/app_name) from AndroidManifest.xml

enter image description hereI was trying to port a huge application to android studio, But I stuck with the following bug

Information:Gradle tasks [:calendar2014:assembleDebug]Error:(40, 9) Attribute application@label value=(@string/app_name) from AndroidManifest.xml:40:9
is also present at Calendar20155:wheel:unspecified:11:18 value=(Android Wheel Widget)
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:33:5 to override

:calendar2014:processDebugManifest FAILED

I tried to add xmlns:tools="....." to my manifest file. And it shows inactive. Please do share the solution if you have any.

Upvotes: 1

Views: 6286

Answers (3)

Evan Stewart
Evan Stewart

Reputation: 11

Late but my solution to this error was to make the two values consistent. So change "Android Wheel Widget" to "@string/app_name"

Upvotes: 1

&#193;lvaro Ag&#252;ero
&#193;lvaro Ag&#252;ero

Reputation: 4800

You must delete that attribute on AndroidManifest of android folder:

  1. Go to

/your_direction/AndroidStudioProjects/my_flutter_app/android/app/src/main/AndroidManifest

  1. And Delete

android:label="your_app_name"

Upvotes: 2

Fabin Paul
Fabin Paul

Reputation: 1711

Suggestion is given in logcat itself. Try

tools:replace="android:label

to application tag in manifest

Upvotes: 1

Related Questions