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

[5.1.0-beta] android: DexIndexOverflowException due to com.auth0.jwt #1002

Closed
slicejunk opened this issue Sep 15, 2017 · 5 comments
Closed

Comments

@slicejunk
Copy link

slicejunk commented Sep 15, 2017

Steps to Reproduce

  1. compile the android app
  2. count the methods with https://github.com/KeepSafe/dexcount-gradle-plugin for instance

Expected Behavior

the library should not consume ~ 25.000 methods !!
we should not add multidex support just for one dependency

Actual Behavior

DexIndexOverflowException

@sergey-akhalkov
Copy link
Contributor

Hi @slicejunk, thanks for pointing to this. I'm going to investigate if we could use another jwt lib to avoid this issue, we'll let you know if any updates.

@slicejunk
Copy link
Author

@sergey-akhalkov you can also use this package to count the number of methods used
https://github.com/mihaip/dex-method-counts
proguard can shrink this number to only ~3.000 but it is a pain to use it on dev
I guess some people will get this DexIndexOverflowException just after upgrading to 5.1.0-beta

@mortezaalizadeh
Copy link

mortezaalizadeh commented Sep 16, 2017

Got the same issue this morning after upgrading from 5.0.0-beta to 5.1.0-beta. :(

@sergey-akhalkov
Copy link
Contributor

sergey-akhalkov commented Sep 18, 2017

Hi @slicejunk, @mortezaalizadeh, I've fixed the issue in #1007, please verify. We are also going to test and merge it asap.

ruslan-bikkinin pushed a commit that referenced this issue Sep 18, 2017
fix DexIndexOverflowException due to com.auth0.jwt #1002

use another lib - nimbus-jose-jwt
@max-mironov
Copy link
Contributor

Hey everybody, we've released 5.1.1-beta that should fix the problem. Please let us know if you see any issues with this.

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

No branches or pull requests

5 participants