Skip to content

When running assembleRelease I get error "Multiple dex files define Lcom/flutter_webview_plugin/BrowserClient;" #157

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

Closed
PiercarloSlavazza opened this issue Aug 13, 2018 · 2 comments

Comments

@PiercarloSlavazza
Copy link

In pubspec.yml I have:

[...]
dependencies:
  flutter_webview_plugin: "^0.2.1+2"
  package_info: "^0.3.2"
  flutter_facebook_login: "^1.1.1"
  meta: "^1.1.5"
  flutter_redux: "^0.5.0"
  google_sign_in: "^3.0.3+1"
  http: '>=0.11.1 <0.12.0'
  redux: "^3.0.0"
  redux_persist_flutter: '0.6.0-rc.1'
  uuid: "^1.0.0"
  flutter:
    sdk: flutter
  flutter_localizations:
      sdk: flutter
[...]

When I run assembleRelease I get the error:

[...]
:app:transformDexWithDexForRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/flutter_webview_plugin/BrowserClient;
[...]
BUILD FAILED in 1m 5s
191 actionable tasks: 170 executed, 21 up-to-date
Multiple dex files define Lcom/flutter_webview_plugin/BrowserClient;
16:31:28: Tasks execution finished 'clean assembleRelease'.

I am using Flutter "master" (commit e5432a2843bd6c5eefc3d6c0d48ec3155bd53969).

Is it a possible bug, or some misconfiguration on my side?

Disclaimer: I am not an experienced Android developer, and I do not (yet) know what is a "dex" file.

@PiercarloSlavazza
Copy link
Author

A note: when running in debug mode, everything worked fine

@PiercarloSlavazza
Copy link
Author

Solved: upgrading to the latest version of google_sign_in fixed the problem.

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

No branches or pull requests

1 participant