Flutter-Advanced-Share icon indicating copy to clipboard operation
Flutter-Advanced-Share copied to clipboard

Build Exception from conflict

Open Skquark opened this issue 6 years ago • 2 comments

When I add the component to my yaml, I get an error that I can't figure out how to resolve, hoping you could help. I have a bunch of packages I'm using, but judging from what I can make of the error, it looks like there's a conflict with this and the Image Picker addon. Here's the error:

C:\Projectz\myapp\android\app\src\main\AndroidManifest.xml:14:13-74 Error: Attribute provider#android.support.v4.content.FileProvider@authorities value=(com.skquark.myapp.flutter.image_provider) from [:image_picker] AndroidManifest.xml:14:13-74 is also present at [:advanced_share] AndroidManifest.xml:10:13-64 value=(com.skquark.myapp.adv_provider). Suggestion: add 'tools:replace="android:authorities"' to element at AndroidManifest.xml:12:9-20:20 to override. C:\Projectz\myapp\android\app\src\main\AndroidManifest.xml:19:17-72 Error: Attribute meta-data#android.support.FILE_PROVIDER_PATHS@resource value=(@xml/flutter_image_picker_file_paths) from [:image_picker] AndroidManifest.xml:19:17-72 is also present at [:advanced_share] AndroidManifest.xml:15:17-65 value=(@xml/adv_share_provider_paths). Suggestion: add 'tools:replace="android:resource"' to element at AndroidManifest.xml to override.

FAILURE: Build failed with an exception.

Any ideas? The package it's complaining about is https://pub.dartlang.org/packages/image_picker which I've been using with no problem for months until I tried adding this. Hope it's a simple solution... Thanks.

Skquark avatar Jul 03 '18 01:07 Skquark

thanks for your work, i m similarity problem android compiling:

conflict dependencies{ implementation "com.android.support:support-core-utils:27.1.1" }

and image_picker 27.1.0

gustavobrian avatar Aug 01 '18 14:08 gustavobrian

What's the solution for this error? Tried implemting the "use as" feature from my app's flutter method channel, ran into this build error

asapJ avatar Aug 08 '18 19:08 asapJ