Error: null, Cannot fit requested classes in a single dex file (# methods: 111621 > 65536)


Android Studion 3.5.1 installed


This error mean that the size of method > 65536 (64 k)


Add “multiDexEnabled true” inside build.gradle defaultConfig like this below text:

 defaultConfig {
        applicationId "com.a2fahmi.fpb"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 5
        versionName "1.4"
        multiDexEnabled true

Thanks for reading

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *