摇篮错误在Android Studio中 [英] Gradle Error In Android Studio
问题描述
我能做些什么来解决这个问题:
org.gradle.tooling.GradleConnectionException:
使用摇篮安装无法执行编译
C:\\用户\\ avand \\ .gradle \\包装\\ dists目录\\ gradle这个-1.8-BIN \\ vruqmccc8532n7gr46qavsii8 \\ gradle这个-1.8
使用摇篮安装无法执行编译
C:\\用户\\ avand \\ .gradle \\包装\\ dists目录\\ gradle这个-1.8-BIN \\ vruqmccc8532n7gr46qavsii8 \\ gradle这个-1.8
感谢。
的 我的解决方案=低于建议的解决方案列表的
我最近刚刚处理这个问题在过去的小时,想到目前为止我解决了我的问题/问题...
因此,将张贴在这里和因为其他人寻找这一个....
上述错误是同一个,我是越来越
经过一番搜索我碰到的各种建议,但问题似乎也很普通决议为其他人的不同。
的如果是我遇到这个问题?
有些时候,在编译/构建一个项目,我会得到这个错误,但是当我试图运行项目引导到一个物理测试设备,它总是会出现。另外一个调试和放大器;发布版本的罚款。
系统重新启动和重新启动IDE工作做了一些时间,但一段时间后,它必须是另一个系统重启......我讨厌这样做,我想重新开始,每天一次最多..下面列出的其他解决方案没有奏效我...
本身也似乎问题出现身边的时候,如果我安装另一个USB驱动程序的的Nexus 7,并与该设备进行测试。
建议从谷歌的解决方案(从我的坏短期记忆)
- 重新启动的Android Studio的IDE /应用 - 的很少工作的
- 重新启动计算机本身 - 的工作大部分时间在有限的时间的
- 执行重建项目 - 这会的
期间出现的错误有时
- 执行./gradlew干净 - 这会
的期间出现的错误有时
- 创建一个新的基本/空白项目 - 同样的结果大部分时间的
- 不同的Android设备 - 表和电话做了同样的结果的
- 重新启动ADB服务 - 的我没有工作的
- 另一个开发的电脑 - 的是懒得验这个..到多的努力安装一个-S 的
- 删除的gradle项目文件夹 - 此搞砸了雷/幸运的备份;)的
- 更改依赖的Gradle版本 - com.android.tools.build:gradle\"-的没有工作的
- 重新安装用户文件夹内gradle这个 - 错误显示 - 的同样的结果的
- 重新安装Android工作室 - 的没有尝试这个(还)的
- 不同版本的Android工作室 - 的没有尝试这个(还)的
- ,我很快测试还有什么过
块引用>已经张贴以上只是给人们一个快速列表来拯救他们从一个小谷歌关键字细化
什么最终为我工作至今
重新启动电脑工作,一点点的时间后,问题就来了
回来了,于是决定打开我的任务管理器,看看是什么
服用的系统内存并注意到了谷歌浏览器是使用公平
位(因为它,但我喜欢它)..所以我将其关闭以(高清沿
电影,电子邮件客户端和所有其他平常的东西,我有运行)和
点击运行按钮......它的工作....与各种恢复备份
闲来无事运行。它的工作...
块引用>所以对我来说,这是系统资源!我也能够通过在内存中我的系统用大量的应用程序加载到重现该问题。
编辑 - 第二天早上
这个早晨,当我检查项目,将运行罚款没有问题,一个做项目并产生错误,做一个简单的重建工程又解决了这个..也许遗留缓存还是什么? ..
STILL总是与系统内存
即使到现在我仍然得到这个故障,大部分时间关闭谷歌浏览器吧,也是在浏览器加载网页没有任何Java运行,所以我不认为这是一个冲突有两种。
硬盘/ WRITE&安培;读取速度
我不认为这适用在所有的,只是将其添加为代价......如果一切都还是失败,请尝试重新定位你的项目到另一个物理硬盘驱动器?没有其他分区。
What Can I Do To Fix This:
org.gradle.tooling.GradleConnectionException:
Could not execute build using Gradle installation
C:\Users\avand\.gradle\wrapper\dists\gradle-1.8-bin\vruqmccc8532n7gr46qavsii8\gradle-1.8
Could not execute build using Gradle installation
C:\Users\avand\.gradle\wrapper\dists\gradle-1.8-bin\vruqmccc8532n7gr46qavsii8\gradle-1.8
Thanks.
解决方案MY SOLUTION = BELOW THE LIST OF SUGGESTED SOLUTIONS
I have just recently been dealing with this issue over the past hour and "think" i have resolved my issue/problem so far...
So will post here and because of other people searching for this one....
The above error is the same one i was getting
After some searching i came across various suggestions, But the problem also seemed fairly generic of the resolutions for other people as varying..
When was i experiencing this issue???
Some times i would get this error while compiling/building a project, but it would ALWAYS appear when i was trying to "Run" the project direct to a physical test device. Also a debug & release build worked fine.
The system restart and IDE restarts did work some times but after awhile it had to be another system restart... I hate doing that, i like to restart once a day at most.. The other solutions listed below did not work for me...
The issue itself also seemed to appear around the time if me installing another usb driver for a Nexus 7 and testing with that device.
Suggested solutions from Google (from my bad short term memory)
- Restart the Android Studio IDE / Application - rarely worked
- Restart the computer itself - worked most times for a limited time
- Perform a project rebuild - error would some times occur during this
- Perform a ./gradlew clean - error would some times occur during this
- Create a new basic / blank project - same result most times
- Different Android Device - table and phone did the same results
- Restart ADB service - did not work for me
- Another Dev Computer - was to lazy to test this.. to much effort install A-S
- Delete the projects gradle folder - this messed mine up / lucky for backups ;)
- Change the gradle dependency version - "com.android.tools.build:gradle"- did not work
- Re-install gradle inside User folder - "shown in error" - same result
- Re-install Android Studio - did not attempt this (yet)
- Different version of Android Studio - did not attempt this (yet)
- And what ever else i tested quickly
Have posted the above just to give people a quick list to save them from a little google keyword refinement
AND what ended up working for me so far
Restarting the PC worked and after a little time the problem comes back, so decided to open my task manager and have a look at what was taking SYSTEM MEMORY and noticed Google Chrome was using a fair bit (as it does, but i love it)..So i shut it down along with (a hd movie, email clients and all the other usual stuff i have running) and hit the "Run" button... It worked.... Restored various backups with nothing else running.. It worked...
So for me, it was system resources! i was also able to reproduce the problem by loading down my system with plenty of applications in memory.
EDIT - Following morning
This morning when i checked the project, it would "Run" fine with no problem, a "Make project" did produce the error and doing a simple "Rebuild project" resolved this again.. Possibly left over cache or something?..
STILL always relating to system memory
Even now i still get this fault, most times closing Google chrome does it, also the pages that are loaded in the browser do not have any Java running so i dont think it is a clash there either.
HARD DRIVE / WRITE & READ SPEED
I dont think this applies at all, BUT just adding it as a consideration... If all else still fails, try relocating your project to another physical hard drive?? Not another partition..
这篇关于摇篮错误在Android Studio中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!