Error:Could not run build action using Gradle installation 'C:\Program Files\Android\Android Studio1\gradle\gradle-2.2.1'

后端 未结 2 975
死守一世寂寞
死守一世寂寞 2020-12-08 07:15

Ive just installed android studio 1.0 RC2 in a windows 8.1 64bits, but when i try to create a new project it says Error:Could not run build action using Gradle installation

2条回答
  •  没有蜡笔的小新
    2020-12-08 08:00

    We have two famous way for this problem:

    1- update the gradle:

    step 1:

    Get latest version supported by Android Studio from:

    https://services.gradle.org/distributions

    step 2:

    Extract the gradle file and install to dists folder(gradle folder): default location is: C:\Users[username]\gradle\wrapper\dists

    step 3:

    Open Android Studio: File/Settings/Gradle/Service directory path: (Change to folder you set above) and Click ok.

    Status on bottom should indicate it's busy & error should be fixed.

    step 4:

    restart Android Studio

    2- Delete the .gradle folder:

    default location is:

    C:\Users[username]\gradle\wrapper\dists

    after that open Android Studio and make a new project (might need to reastart).

提交回复
热议问题