‘gradle’ is not recognized as an internal or external command
While trying to run a gradle command, I see ‘gradle’ is not recognized as an internal or external command. It took me sometime to know the Gradle executable path, after installing Android Studio. Hence, thought to share so it may help somebody…
The gradle executable is usually installed here(when installed by Android-Studio):
<user_home_dir>.gradle\wrapper\dists\gradle-<version>-bins\<somekey>\gradle-<version>\bin
<user_home_dir>, refers to the user directory, eg. C:Users/myuser
<version>, refers to installed gradle version number like 1.6 or 1.7 etc
the whole path looks like below
C:\Users\praveen\.gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\gradle-1.6\bin
You have to set this kind of path in Environment variable PATH. And then close and reopen the cmd Prompt. Now you can able to run gradle commands
try, and you can see following details
>gradle -v
————————————————————
Gradle 1.6
————————————————————
Gradle build time: Tuesday, 7 May, 2013 9:12:14 AM UTC
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012
Ivy: 2.2.0
JVM: 1.7.0_21 (Oracle Corporation 23.21-b01)
OS: Windows 8 6.2 amd64
You may be also interested in
- Gradle error, Could not find method jcenter() for arguments [] on repository container
- Could not resolve com.android.support:support-v4:22.0.0, Android Studio
- Add jar as library to Project, Android Studio
- Generate signed APK file with Specific name Android Studio
- com.android.dex.DexException: Multiple dex files define, Android Studio
- Gradle DSL method not found – Android Studio
One thought on “‘gradle’ is not recognized as an internal or external command”
Reblogged this on Dinesh Ram Kali..