本文介绍了摇篮设置不能施放的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

org.jetbrains.plugins.gradle.settings.GradleSettings不能转换为org.jetbrains.plugins.gradle.settings.GradleSettings错误,而试图建立新的项目

org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings error while trying to build new project

我下载http://services.gradle.org/distributions/gradle-1.6-bin.zip手动和复制ZIP内容到C:\ Program Files文件(x86)的\机器人\机器人工作室\插件\摇篮文件夹,复制gradle.jar从C:\ Program Files文件(x86)的\机器人\机器人工作室\插件\摇篮\ lib文件到C:\ Program Files文件(x86)的\机器人\机器人工作室\ lib中,但仍无法建立我的第一个项目,在机器人工作室

I downloaded http://services.gradle.org/distributions/gradle-1.6-bin.zip manually and copied zip contents to the C:\Program Files (x86)\Android\android-studio\plugins\gradle folder and copied gradle.jar from C:\Program Files (x86)\Android\android-studio\plugins\gradle\lib to C:\Program Files (x86)\Android\android-studio\lib but still unable to build my first project in android studio.

推荐答案

尝试从下载完整的zip文件的。然后手动复制它的内容到 C:\的Documents and Settings \(您的名字)\摇篮\包装\ dists中\摇篮-1.6-BIN \ 72srdo3a5eb3bic159kar72vok \

Try downloading the full zip file from here. Then manually copy it's contents to C:\Documents and Settings\(Your name)\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\

如果这样做的工作,尝试重新安装Android工作室,并再次请按照下列步骤操作。

If this does work, try to re-install Android Studio and follow these steps again.

如果您运行的是Windows 7 64位,尝试编辑 Android的工作室\ BIN \ studio.bat

If your running Windows 7 64-bit, try to edit android-studio\bin\studio.bat

SET VM_OPTIONS_FILE=%IDE_BIN_DIR%\studio%BITS%.exe.vmoptions 

to 

**SET VM_OPTIONS_FILE=%IDE_BIN_DIR%\studio%BITS%.exe**

SET JRE=%JDK%
IF EXIST "%JRE%\jre" SET JRE=%JDK%\jre
SET BITS=
**IF EXIST "%JRE%\lib\amd64" SET BITS=64**

这篇关于摇篮设置不能施放的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 17:44