确保你看到的错误信息确实是“Error: Module not specified”。这个错误可能出现在多种情况下,如构建项目、同步Gradle配置或打开模块设置时。检查模块设置: 在Android Studio中,检查项目结构,确保项目中包含至少一个模块(通常是app模块)。 在settings.gradle文件中,确认已经包含了相应的模块。例如: gradle include ':...
在build.gradle(app)的最前面加上下面这一段: buildscript{repositories{mavenCentral()// or jcenter()}dependencies{classpath 'com.android.tools.build:gradle:3.2.0'}} The specified Gradle installation directory 'xxx' does not exist. 进入gradle下的gradle-wrapper.properties,对distributionUrl进行修改,改成...