FlutterMulti-ImagePicker icon indicating copy to clipboard operation
FlutterMulti-ImagePicker copied to clipboard

Including in pub spec fails compilation

Open vijaykanta opened this issue 6 years ago • 3 comments

The following is what I get after I included the package in the pub spec YAML file.

Attribute application@label value=(cityjan) from AndroidManifest.xml:21:9-32 is also present at [com.library.tangxiaolv:telegramgallery:1.0.5] AndroidManifest.xml:13:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:19:5-46:19 to override.

FAILURE: Build failed with an exception.

I haven't even used the library yet, simple compilation throws this error. There's more to it, but I think you should understand by now what is the problem.

vijaykanta avatar Aug 18 '18 08:08 vijaykanta

yup facing same issue

naumanahmed19 avatar Aug 24 '18 15:08 naumanahmed19

The plugin uses the same attribute as the android app level Manifest i.e <application android:label=".........." this conflicts with the one you are just having in your project. I just removed the attribute in my project and replace it with <application replace="android:label" It worked but the plugin given name i.e Telegram Gallery will act as your app name,am still finding a way to modify the pub cache files for the plugin to fall under my app needs

ronaldG19 avatar Sep 23 '18 00:09 ronaldG19

You can solve this issue by adding the following to your AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="yourpackagename" xmlns:tools="http://schemas.android.com/tools">

<application
 **tools:replace="icon, label"**

MikeSWelch avatar Oct 24 '18 21:10 MikeSWelch