错误提示:Failed to apply plugin [id 'kotlin-android']
> The current Gradle version 5.6.4 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin.
第一步,在project下的build.gradle中的repositories下添加(注意:buildscript和allprojects下都有repositories):
repositories { jcenter() google() }
第二步,同样在project下的dependencies中添加下面这句(后面的版本需要按照对照表来,否则肯定出错,PS:kotlin版本要按照对照表来,我这里定了1.4.20)(我这里是4