singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.58k stars 835 forks source link

How do we handle packages that makes use of flutter_keyboard_visibility #2325

Open jeedy20 opened 3 weeks ago

jeedy20 commented 3 weeks ago

Is there an existing issue for this?

The question

I am faced with build issues cos of the flutter_keyboard_visibility and the fork version in Flutter quill in my android app. Some packages i use like Typehead and Formbuilder makes use of flutter_keyboard_visibility and i have not been able to build successfuly. I get this error `* What went wrong: Execution failed for task ':app:mergeDexRelease'.

A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate There was a failure while executing work items A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: Type com.jrai.flutter_keyboard_visibility.FlutterKeyboardVisibilityPlugin is defined multiple times: C:\Users\Olivette Tech\Olivette Projects 2024\Single Vendor Ecommerce App\user_app\build\flutter_keyboard_visibility.transforms\987521ff7d9505d33cc182a5db8058af\transformed\classes\classes_dex\classes.dex, C:\Users\Olivette Tech\Olivette Projects 2024\Single Vendor Ecommerce App\user_app\build\flutter_keyboard_visibility_temp_fork.transforms\5fd9974a5e33e97aca789927b4910ed6\transformed\classes\classes_dex\classes.dex Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. `

EchoEllet commented 3 weeks ago

Thank you for the report. You can fork them and replace the library or override the dependency in pubspec.yaml

jeedy20 commented 3 weeks ago

Please can you provide a guide cos i tried to do so but i am faced with same error

mrcsh commented 1 week ago

I have pinned flutter_quill at 10.8.0 which was the last version without the flutter_keyboard_visibility_temp dependency.

jeedy20 commented 1 week ago

Okay thanks