New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 #11591
Comments
Did you do as suggested by the error message? You need to install Android Studio make sure it's in your Here's my |
On If you have an debian/ubuntu system you can do this like that |
@mburger81 - how to get this on Mac OS? I don't have Android Studio Installed |
google how to install gradle on Mac! 😄 |
@mburger81 - I meant i am using android sdk via local directory, all development was moving smoothly till now, it was only after v3.1.1 upgrade the gradle stopped working; still i need to install Studio? |
Here is the solution I found for Mac Download the Gradle Binary Only Distribution from https://gradle.org/gradle-download/ Open a terminal unzip ~/Downloads/gradle-3.1-bin.zip -d ~/Development vi ~/.bash_profile export GRADLE_HOME=~/Development/gradle-3.1/bin source ~/.bash_profile echo $GRADLE_HOME |
What to do on windows ?! |
Here are the steps for windows: |
For me this happened because I upgrade Cordova to version |
I am using Linux Mint 18 Cinnamon and was experiencing the same problem. The problem was happening even though I have an ionic 1 setup and Android that is building with no issues. I resolved it by installing gradle ionic info:
|
I have the same issue. I have android studio. How do i get it in my path? |
Run this command to install gradle on a mac:
|
Upgrading gradle worked for me to 4.4 |
This issue is closed currently, but it still does not seem to work without explicit installation of Gradle.
This setup works smoothly for Android native apps development (via Android Studio) but I am still getting error when trying to build ionic based project when trying to compile it with
My
|
This issue shouldn't be closed, the issue is still present using the latest Android Studio, cordova and ionic |
This issue should not be closed, I have the latest android studio, ionic and cordova and it will not build even the sample project. |
I had this same issue after updating the android ionic platform, my solution was to open Android Studio and SDK Manager to update android 8.0 (Oreo) API Level 26. |
Same issue here. Run: brew install gradle |
export GRADLE_HOME="/usr/local/lib/gradle-4.6/bin" |
On macOS, if you'd prefer to avoid installing an extra copy of Gradle, you can simply use the tooling installed by Android Studio by adding the following to your
Note: in the future, you'll likely need to change the version above from
|
Thank you mburger81. |
Rather than redundantly installing another copy of Gradle, add your Android Studio gradle to However, it didn't work for me at first, you have to be aware of the space in the path. |
gradle@4.4 (install sdkman, |
Thanks to @bitjson I could configure the .bash_profile to be:
And this command (I was gettind EACCESS error):
I could (Mac OS X + Ionic + NodeJS = last versions) |
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. |
Ionic version:
[x] 3.x
I'm submitting a ...
[x ] bug report
Current behavior:
ionic run android --prod
results in below errorCould 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
Expected behavior:
ionic run android --prod must build and run on device connected
Ionic info:
The text was updated successfully, but these errors were encountered: