Adding the following code to build.gradle
app module solved my problem
android{
defaultConfig {
// Enabling multidex support.
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
//...
compile 'com.android.support:multidex:1.0.0'
}
More Related Contents:
- java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex
- Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’
- The number of method references in a .dex file cannot exceed 64k API 17
- why Android Studio build process cost too long time [duplicate]
- How to use opencv in using Gradle?
- How to disable gradle ‘offline mode’ in android studio? [duplicate]
- Bad class file magic or version
- Tools: replace not replacing in Android manifest
- Why are there two build.gradle files in an Android Studio project?
- Invoke-customs are only supported starting with android 0 –min-api 26 [closed]
- Error: could not find com.google.gms:google-services:4.2.0
- Gradle error: Minimum supported Gradle version is 3.3. Current version is 3.2
- Error: No toolchains found in the NDK toolchains folder for ABI with prefix: llvm
- Duplicate files copied (Android Studio 0.4.0) [duplicate]
- Publish an Android library to Maven with AAR and sources JAR
- Android Studio – Failed to apply plugin [id ‘com.android.application’]
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to
- Android Studio: Resolving Duplicate Classes
- Error : Please fix the version conflict either by updating the version of the google-services plugin
- How to change app name per Gradle build type
- How can I add .so files to an android library project using gradle 0.7+
- NoClassDefFoundError below SDK 21
- Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’
- OpenCv with Android studio 1.3+ using new gradle – undefined reference
- Gradle error upgrading to Android Studio 3.0 Beta 1
- My NDK project fails to compile with a CPU architecture-related issue
- Missing api_key/current key with Google Services 3.0.0
- android.dexOptions.incremental property is deprecated
- Android Studio: Gradle Product Flavors: Define custom properties
- Class file for com.google.android.gms.internal.zzaja not found