Android gms: play-services: 8.1.0 DexIndexOverflowException

Gradle Build failure with exception of several decks after I changed gms: play-services: 7.5.0 to 8.1.0

The error was caused by exceeding the limit of 65 thousand methods and was fixed by replacing the version or deleting several libraries, but this does not seem to be the right solution, because you usually need more than several libraries.

What is the best solution to bypass the 65k limit?

EDIT

The best option is to prevent the DexIndexOverflowException problem by using separate parts of the gms library, such as com.google.android.gms:play-services-maps:8.1.0orcom.google.android.gms:play-services-identity:8.1.0

+4
source share
1 answer

, -

 multiDexEnabled true

multi dex, v21 .

v21 multiDexEnabled true multidex:

  compile 'com.android.support:multidex:1.0.1'

@NasaGeek: multidex google play.

0

Source: https://habr.com/ru/post/1609821/


All Articles