Failed to import new Gradle project in android studio
I got the error when i create a new Project using android studio. below i attached a screenshots of error message.. I am using windows 7 (64 bit) Please help me.
Solution 1:
I also had an issue downloading gradle
through AndroidStudio
. I tried the following.
- Go to your
AndroidStudio
directory where you installed your studio LikeD:\User\AndroidStudio
- In
AndroidStudio
go to\AndroidStudio\plugins\gradle\lib
and copygradle.jar
- Paste
gradle.jar
file in\AndroidStudio\lib
directory. - Download gradle directly from Gradle
- Copy the contents of
gradle-1.6-bin.zip
- After extracting zip file -(bin, media, init.d, lib folders)
to\AndroidStudio\plugins\gradle
- Restart
AndroidStudio
* Updated Answer *
And after following all the steps listed above, if it is not working, Kindly check below things.
1) Please delete .gradle
folder from your user like C:\Document and Settings\AndroidUser\***\.gradle
2) You can check your HTTP Proxy
in Settings
.
Hope this helps!
Solution 2:
In my case, it was sufficient to specify the location of the Gradle distribution included with Android Studio when requested.
On a mac, it was: /Applications/Android Studio.app/Contents/gradle/gradle-2.2.1
On Linux, it can be generalized to {android-studio-root}/grade/gradle-{version}