Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536

Jyotishgher Astrology
By -
0

Error:Cannot fit requested classes in a single dex file.Try supplying a main-dex list. # methods: 72477 > 65536



SOLUTIONS:


In Gradle build file, add dependency:

You must add the library in the app gradle :
implementation 'com.android.support:multidex:1.0.3'

After, 

And then in the "defaultConfig" section, add:

add in the defaultConfig of the app gradle :
modify your app's or module's build.gradle
android {
    defaultConfig {
       
        targetSdkVersion 26
        multiDexEnabled true <------ *here
    }
  
}
multiDexEnabled true

Post a Comment

0Comments

Post a Comment (0)