Android的工作室在Mac上 - 使用默认封装的gradle [英] Android Studio on Mac - Use default gradle wrapper
问题描述
我尝试Android Studio中的在Mac 打开一个新的项目,并得到这个错误:
I try to open a new project in Android Studio on Mac and get this error:
Error:(1, 0) Plugin is too old, please update to a more recent version
所以我改变类路径com.android.tools.build:gradle:2.0.0-alpha3
到
classpath 'com.android.tools.build:gradle:2.0.0-alpha5'
然后我得到这个错误:
and then I get this error:
Warning:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in /Users/.../gradle/wrapper/gradle-wrapper.properties to gradle-2.10-all.zip
所以我改变了它在gradle-wrapper.properties为:
so I changed it in the gradle-wrapper.properties to:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
和仍然得到了同样的信息。
and still get the same message.
我试图下载gradle这个-2.10,并在设置 - 改变路径>构建,执行,部署 - >构建工具 - >摇篮到'gradle这个-2.10'被保存,并且仍然没有帮助的路径...
I tried to download 'gradle-2.10' and changed the path in Settings-> Build, Execution, Deployment -> Build Tools -> Gradle to the path where 'gradle-2.10' is saved, and still didn't help...
我看了,我们需要标志着项目级别设置的选项使用默认封装的gradle',但我看不出有选项中,只有一个标题...
I read that we need to mark the option 'Use default gradle wrapper' in the project-level settings but I don't see options there, only a title...
有谁知道如何解决它?
推荐答案
如果它可以帮助别人的未来:
If it can help someone in the future:
正确的道路是的不的设置→生成,执行,部署→生成工具→摇篮,但 preferences →生成,执行,部署→生成工具→摇篮
The right path is not Settings → Build, Execution, Deployment → Build Tools → Gradle, but Preferences → Build, Execution, Deployment → Build Tools → Gradle
这篇关于Android的工作室在Mac上 - 使用默认封装的gradle的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!