The current Gradle version 5.6.2 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin

问题:

The current Gradle version 5.6.2 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.1.1 or newer, or the previous version of the Kotlin plugin

 

 

解决办法:

修改android/build.gradle文件

把 classpath 'com.android.tools.build:gradle:3.5.0'

修改为 classpath 'com.android.tools.build:gradle:4.0.0'

 
posted @ 2022-03-24 21:51  深圳大漠  阅读(3100)  评论(0编辑  收藏  举报