解决Could not find method android() for arguments问题

从github上面下载项目导入AndroidStudio时,报错:
Android studio error:Error:(23, 0) Could not find method android() for arguments on root project
解决:
1. 打开build.gradle(app)
2. 将其中的
这里写图片描述

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
}

注释掉后重新编译,再取消注释,编译通过。

猜你喜欢

转载自blog.csdn.net/qq_35008279/article/details/80741085