I am trying to start Android Studio for the first time but getting error mentioned below
Could someone please let me know how to solve this error?
I am trying to start Android Studio for the first time but getting error mentioned below
Could someone please let me know how to solve this error?
You need to set your JAVA_HOME path, which will allow Android Studio to run. Have you done that?
Here is how to do that:
If you already have that covered I found a solution here that can help you:
AndroidStudio
directory where you installed your studio Like D:\User\AndroidStudio
AndroidStudio
go to \AndroidStudio\plugins\gradle\lib
and copy gradle.jar
gradle.jar
file to \AndroidStudio\lib
directory.gradle-1.7-bin.zip
- After extracting zip file - (bin, media, init.d, lib folders)
to \AndroidStudio\plugins\gradle
AndroidStudio
http://developer.android.com/sdk/installing/studio.html#Troubleshooting
Scroll to the bottom.
Troubleshooting
Figure 1. Error dialog when opening an existing project.
Error: Gradle project refresh failed
Android Studio 0.2.0 has updated the Gradle plug-in to 0.5.0, which is not backwards compatible. When opening a project that uses an older version of the plug-in, Studio will display the error shown in figure 1 in the upper right corner of the IDE. To resolve the error, you must change the version of the Android Gradle plug-in to 0.5.0.
Click the link in the error dialog Search in build.gradle files. If the dialog is no longer visible, click Event Log in the bottom-right corner of the IDE, then click Search in build.gradle files. Double-click the line under the build.gradle usage. For example: classpath 'com.android.tools.build:gradle:0.4. This opens the project build.gradle file. Edit the classpath to change the gradle version to 0.5.+. For example:
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
For me, I searched for task manager, opened it, went to more options, ended all background android studio tasks, and it worked.\
This happens because sometimes android studio does not fully close properly