Error:(24, 0) Gradle DSL method not found: 'android()'
Possible causes: The project 'FeiYueXueTang_Android' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file The build file may be missing a Gradle plugin.
Possible causes: The project 'FeiYueXueTang_Android' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file The build file may be missing a Gradle plugin.
Apply Gradle plugin
这个问题在导入其他项目的时候产生的。刚刚安装的Android studio,新建项目没问题,但是导入其他项目后报如上错误, 解决方法:
首先确认build.gradle 中sdk版本和buildtools的版本,在你的sdk中否存在,不存在的话,下载对应的版本号应该就可以了。
如果还有问题的话,将当前的项目删掉,重新加载源项目试一下。ps:有可能是你点击了as中的提示修改信息而在你的当前项目中增加了一些内容导致报错。