Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > com.android.build.api.transform.TransformException: Error while generating the main dex list.

Build error with Android

Sun, 13 Jan 2019

This build error has a quick fix. Under your Android folder look for you build.gradle file. Replace the minSdkVersion to 21. The code for it should look like this

  ext {
    buildToolsVersion = "28.0.2"
    minSdkVersion = 21
    compileSdkVersion = 27
    targetSdkVersion = 26
    supportLibVersion = "27.1.1"
Buy Me A CoffeeDigitalOcean Referral Badge
Edward Beazer

Edward Beazer - I just like to build shit. Sometimes I get stuck for hours, even days while trying to figure out how to solve an issue or implement a new feature. Hope my tips and tutorials can save you some time.