Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
214 views
in Technique[技术] by (71.8m points)

android - Gradle settings cannot be cast error

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

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try downloading the full zip file from here. Then manually copy it's contents to C:Documents and Settings(Your name).gradlewrapperdistsgradle-1.6-bin72srdo3a5eb3bic159kar72vok

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

If your running Windows 7 64-bit, try to edit android-studioinstudio.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%libamd64" SET BITS=64**

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...