在这些更改之后,我将项目与 gradle 文件同步,然后可以构建和测试.希望有所帮助.请注意,您应该使用默认或可自定义的 gradle 包装器:I am getting this error while importing an adt project(after exporting and creating gradle file) into Android Studio on mac os x.The android-studio version is 3.6 (latest) and the gradle version is 1.8 (latest).The error shows up as:I have no idea where to look for IDE logs... 解决方案 I was getting a similar error today opening a project after upgrading to Android Studio 0.3.6. Here is what I had to change to get it working again for me.Changed the following line in gradle-wrapper.properties from gradle-1.6-bin.zip to gradle-1.8-bin.zip Also changed the following line in build.gradle from 0.5.+ to 0.6.+ In Windows, gradle-wrapper.properties is located at \project folder\gradle\wrapper\gradle-wrapper.propertiesbuild.gradle is located at \project folder\module folder\build.gradleThe Files that Needed changed are highlighted in the project explorer screen shot below.After those changes I sync'd the project with the gradle files and then could build and test.Hope that helps.Note that you should use default or customizable gradle wrapper: 这篇关于不支持的方法:GradleProject.getBuildScript()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-28 23:54