随着0.4.3机器人工作室,错误:"摇篮工程同步失败。基本功能(如编辑,调试)将无法正常工作和QUOT; [英] With 0.4.3 Android Studio, error: "Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly"

查看:393
本文介绍了随着0.4.3机器人工作室,错误:"摇篮工程同步失败。基本功能(如编辑,调试)将无法正常工作和QUOT;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经注意到,有几个人正在升级至Android工作室0.4.3(问题0.4.2也相信)之后有问题。我的错误和调试步骤,到目前为止如下:

I have noticed that several people are having issues after upgrading to Android Studio 0.4.3 (problem with 0.4.2 also I believe). My error and debug steps so far are as follows:

我看到的消息是摇篮工程同步失败。基本功能(如编辑,调试)将不能正常工作,如下面的快照。

The message I see is "Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly" as shown in snapshot below.

我发现这个线程并按照说明,但我仍然有的错误。我不能做到以下几点指令线程: 我走进摇篮设置,点击使用本地摇篮分配,并指出它*: C:/Users/robot_000/.gradle/wrapper/dists/gradle-1.10-all/6vpvhqu0efs1fqmqr2decq1v12/gradle-1.10

I found this thread and following instructions, but I still have the error. I am not able to do the following instruction in the thread: I went into Gradle settings and clicked on "use local Gradle distribution" and pointed it to*: C:/Users/robot_000/.gradle/wrapper/dists/gradle-1.10-all/6vpvhqu0efs1fqmqr2decq1v12/gradle-1.10

我是否需要有摇篮的地方分布?我在哪里可以下载它从和我在哪里把它?我怎么现在就告诉Android的Studio中使用它? (你可以告诉,我不明白怎么摇篮工程)。感谢您的帮助。

Do I need to have a local distribution of gradle? Where do I download it from and where do i put it? How do I now tell Android Studio to use it? (as you can tell, I don't understand how gradle works). Thanks for any help.

更新1 : 我发现我的电脑上的摇篮文件位于C:\用户\ home.gradle \包装\ dists中\摇篮-1.10-所有\ 6vpvhqu0efs1fqmqr2decq1v12 \摇篮 - 1.10,但我怎么做到这一点:走进摇篮设置并点击使用本地摇篮分配,并指出它*(按此主题

Update 1: I found the gradle files on my computer at C:\Users\home.gradle\wrapper\dists\gradle-1.10-all\6vpvhqu0efs1fqmqr2decq1v12\gradle-1.10, but how do I do do this: "went into Gradle settings and clicked on "use local Gradle distribution" and pointed it to*" (as per THIS THREAD)

推荐答案

转到文件>设置>摇篮,你将最终获得此屏幕来设置你的摇篮:

Go to File > Settings > Gradle you will end up with this screen for setting up your gradle :

另外,还要确保你有谷歌库在你的Andr​​oid SDK目录将位于:

Also make sure you have Google Repository in your Android SDK directory which will be located at :

$SDK_DIR\extras\google\m2repository\com\google\android\gms\play-services\3.1.36

如果不做的SDK管理器>额外安装>谷歌库第一。

If not do install it from SDK Manager > Extras > Google Repository first.

编辑:

所有的 build.gradle (如果你使用的是root级别 build.gradle 来定义Android的摇篮插件版本检查中,只有)必须指向Android的摇篮插件 0.8 版本(最新截至目前)

All your build.gradle(If you are using root level build.gradle to define android gradle plugin version, check in that only) must point to 0.8 version(latest as of now) of android gradle plugin

 dependencies {
     classpath 'com.android.tools.build:gradle:0.8.+'
 }

更新:

映射:

 | Android Gradle Plugin |  Gradle Version |
       0.7.+                     1.9
       0.8.+                     1.10

这篇关于随着0.4.3机器人工作室,错误:"摇篮工程同步失败。基本功能(如编辑,调试)将无法正常工作和QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆