mtellect / FlutterMulti-ImagePicker

Apache License 2.0
56 stars 9 forks source link

Including in pub spec fails compilation #3

Open vijaykanta opened 6 years ago

vijaykanta commented 6 years ago

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.

naumanahmed19 commented 6 years ago

yup facing same issue

ronaldG19 commented 5 years ago

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

MikeSWelch commented 5 years ago

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"**