Gradle settings cannot be cast error

后端 未结 1 1934
一生所求
一生所求 2020-12-10 18:17

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

I

1条回答
  •  醉梦人生
    2020-12-10 19:10

    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\

    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-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**
    

    0 讨论(0)
提交回复
热议问题