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

Known:

Android Studion 3.5.1 installed

Mean:

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

Solution:

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 *