Hi,
While am trying to run the below command i got an error so i have downloaded the Gradle Binary Complete form (https://gradle.org/releases/) V4.2.1 and i have added the environment variable as mentioned in the link for the windows operating system but still am getting error.
ionic cordova run android
Error:
ANDROID_HOME=D:\Softwares\sdk-tools-windows
JAVA_HOME=C:\Program Files\java\jdk1.8.0_77
Error: Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running cordova run android (exit code 1).
Hello! Thank you for opening an issue with us!
The Ionic Framework issues list is designated for the reporting of bugs with the Ionic Framework or for requesting new features. As this seems like more of a support question I am going to close this issue.
I urge that you ask this question on our forum or on our slack channel.
Thanks for using Ionic!
@Mugesh-Rajaram did you find a solution?
This is not about ionic.
For linux:
If you use linux, you have to specify where android is installed.
You can edit your .bashrc and write these 2 lines.
$HOME/ = ~/
export ANDROID_HOME="$HOME/Android/Sdk"
export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
For windows:
On windows is define like an "environement variable" (You have to restart
you pc after you define it)
Now you know what you don't and now you can search for the complete answer.
:)
2018-01-15 13:39 GMT-05:00 gonzad77 notifications@github.com:
@Mugesh-Rajaram https://github.com/mugesh-rajaram did you find a
solution?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ionic-team/ionic/issues/13283#issuecomment-357760035,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL5qT6lSrs3WJ_C8QHGMgUXuG7jauDEYks5tK5t0gaJpZM4QLDNf
.
Développeur webGuillaume Huard Hughes
450-821-6236
Linkedin
https://www.linkedin.com/profile/view?id=AAMAABJ50dEBCvGbOH2tuF9C69cv9zy5pki_jww&trk=hp-identity-name
[email protected]
http://GuillaumeHuardHughes.com
My paths were fine but it didn't work so I installed Gradle with just brew install gradle and it was fine
https://gradle.org/install/#with-a-package-manager
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
My paths were fine but it didn't work so I installed Gradle with just
brew install gradleand it was finehttps://gradle.org/install/#with-a-package-manager