Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
jeedy20 opened this issue Oct 17, 2024 · 2 comments
Open
1 task done
Labels
question Further information is requested

Comments

@jeedy20
Copy link

jeedy20 commented Oct 17, 2024

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. `

@jeedy20 jeedy20 added the question Further information is requested label Oct 17, 2024
@EchoEllet
Copy link
Collaborator

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

@jeedy20
Copy link
Author

jeedy20 commented Oct 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants