CodePudding user response:
Big probability is caused by insufficient memory,You can try the following methods:
1. Gradle defaultConfig set multiDexEnabled true
Or
2. org.gradle.jvmargs=-xmx1536m change (larger)
Or
3. The app moudle. Gradle in android node, add
DexOptions {
JavaMaxHeapSize "4 g"
}