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"
}