我这里的原因是plugins插件中 关闭了Android APK Support 勾选后就可以重新编译生成.gradle文件了 Setting ->Plugins->Android APK Support ->Apply 然后OK就行了