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

Execution failed for task ':app:mergeDexProdRelease'. #1275

Closed
4 tasks done
j-j-gajjar opened this issue Aug 8, 2022 · 9 comments
Closed
4 tasks done

Execution failed for task ':app:mergeDexProdRelease'. #1275

j-j-gajjar opened this issue Aug 8, 2022 · 9 comments
Labels
bug Something isn't working stale

Comments

@j-j-gajjar
Copy link

Environment

Technology Version
Flutter version 3.0.1
Plugin version -
Android version -
iOS version -
Xcode version -

Description

when I try to create a build using android flavor then it failed and gives this error.

Error


* What went wrong:
Execution failed for task ':app:mergeDexProdRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
     Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
     Type com.pichillilorenzo.flutter_inappwebview.BuildConfig is defined multiple times: /home/user/Documents/Flutter_Projects/myproject/build/flutter_inappwebview_quill/.transforms/178f333172fee0932eea9714e74812c6/classes/classes.dex, /home/user/Documents/Flutter_Projects/myproject/build/flutter_inappwebview/.transforms/66f9bac8836a8f0fbfe12bfeaeaef088/classes/classes.dex

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org/

BUILD FAILED in 41s


@j-j-gajjar j-j-gajjar added the bug Something isn't working label Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

👋 @j-j-gajjar

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

@ngc1514
Copy link

ngc1514 commented Sep 5, 2022

Had the same error. I had flutter_quill inside my pubspec.yaml. Removing it fixed the problem. I'm guessing it's due to flutter_inappwebview_quill conflicting with flutter_inappwebview.

@konnic
Copy link

konnic commented Dec 19, 2022

I'm currently facing the same issue, but removing flutter_quill from my dependencies is unfortunately not an option for me. @ngc1514 I agree that the issue lies with flutter_inappwebview_quill, which uses the exact same package name as the original flutter_inappwebview package: com.pichillilorenzo.flutter_inappwebview.

@garv-shah would it be possible to change the flutter_inappwebview_quill package name so that it doesn't collide with the original package?

garv-shah added a commit to garv-shah/flutter_inappwebview that referenced this issue Dec 21, 2022
@garv-shah
Copy link

hi there! I've updated my repository with the name change, but seeing as flutter_quill_extensions doesn't have a GitHub repository anywhere, I'm not sure how to get that change to be updated on Flutter Quill itself.

Seeing as how flutter_inappwebview has had a major refactor since when I made the package, I think it would probably make more sense get Flutter Quill to depend on the official repository itself

@konnic
Copy link

konnic commented Dec 21, 2022

@garv-shah thanks a lot for the quick package name change! I'll try to get in touch with the maintainers of flutter_quill_extensions and flutter_quill.

Seeing as how flutter_inappwebview has had a major refactor since when I made the package, I think it would probably make more sense get Flutter Quill to depend on the official repository itself

Does that mean that you didn't do any changes specifically for quill in your fork? If so, I totally agree.

@garv-shah
Copy link

Does that mean that you didn't do any changes specifically for quill in your fork?

Yup, exactly, it was merely a fix for a bug that this repository had with the Xcode 14/iOS 16 betas that prevented building which got fixed officially in this PR, and was meant to be temporary since it was blocking app building on the latest iOS version.

Here's the exact issue: singerdmx/flutter-quill#883

Either way, it was just meant to be a temporary change since as predicted it took about 4 months for it to be fixed officially, so it's definitely long overdue a change back :D

@konnic
Copy link

konnic commented Dec 21, 2022

@garv-shah thanks a lot for the clarification! 🙏

Copy link

github-actions bot commented Oct 4, 2024

This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.

@github-actions github-actions bot added the stale label Oct 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2024
Copy link

github-actions bot commented Nov 1, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

4 participants