Okhttp: Error while dexing with okhttp 4.0.0 releases

Created on 12 Jun 2019  ·  6Comments  ·  Source: square/okhttp

Preparing a migration to okhttp 4.0.0 (using 4.0.0-RC1) we are seeing an issue when trying to install the app.

A gist of the stacktrace can be found here.

Build output looks like this:
Skærmbillede 2019-06-12 kl  14 46 04

Happens every time we try to run the app.

Reverting to version 3.14.2 fixes it.

bug

All 6 comments

Please file an issue on R8 at https://issuetracker.google.com/issues/new?component=326788 and link it here. It's unlikely that OkHttp is actually the cause of this beyond having a shape of code that somehow breaks R8.

Also, make sure you're on the latest Android Gradle plugin. I don't have any problems on 3.4.1 or 3.5 betas with the RC1.

If others come across this - issue can be tracked here.

still have this problem on rc1 with lastest gradle 3.4.1. I need to revert to use 3.14.2

@namkazt Just disable advanced profiling in your run configuration and the problem will be gone.

Skærmbillede 2019-06-15 kl  23 51 37

@bohsen ohhh right, I wonder why it just happens from nowhere when just run normally. Thanks

Was this page helpful?
0 / 5 - 0 ratings