Change the following settings in build.gradle file to: classpath 'com.android.tools.build:gradle:3.4.2'