On some device configuration, when running the Gradle build, it can happens that it fails with the following error : com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536 About my case, it happened to me when trying to build an app using Google Play Services library. And I solved the issue after a few attempts, ...