gradle DSL method not found: android() 出现的原因是由于未知性原因,Android Studio错误的添加 android() 在顶级目录 build.gradle 文件中 解决办法:删除 android{..} 如下图标记