esysberlin / esys-flutter-share

A Flutter plugin for sharing files & text with other applications.
Apache License 2.0
130 stars 147 forks source link

esys_flutter_share plugin is giving error when we use it with any 'Permission' plugin #25

Open pkmarathe opened 5 years ago

pkmarathe commented 5 years ago

esys_flutter_share plugin is giving below error when I use it with any 'Permission' plugin. Please assist

dependencies in pubspec.yaml cupertino_icons: ^0.1.2 dynamic_theme: ^1.0.1 sqflite: ^1.1.1 path_provider: ^0.5.0+1 simple_permissions: ^0.1.9 esys_flutter_share: ^1.0.1 intl: ^0.15.8 flutter_html: ^0.9.6

FAILURE: Build failed with an exception.

com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\2.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\3.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\4.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\5.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\6.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\7.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\8.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\9.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\10.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\11.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\12.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\13.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\14.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\15.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\16.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\17.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\18.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\19.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\20.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\21.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\22.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\23.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\24.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\25.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\26.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\27.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\28.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\29.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\30.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\31.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\32.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\33.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\34.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\35.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\36.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\37.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\38.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\39.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\40.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\41.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\42.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\43.jar, D:\Flutter\Practice\mytestnote\build\app\intermediates\transforms\dexBuilder\debug\44.jar Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.media.MediaBrowserCompat$CallbackHandler

BUILD FAILED in 17s

Gradle task assembleDebug failed with exit code 1

Exited (sigterm)