Please include gradle in your path or install android studio

Содержание
  1. Resolve! Could not find an installed version of Gradle either in Android Studio,
  2. How to resolve this issue?
  3. Step 1) Download Gradle files
  4. Step 2) Extract this file and place in
  5. C:\Gradle\gradle-6.2
  6. Step 3) Copy path then add in Environment Variables
  7. ionic 2 — Ошибка Не удалось найти установленную версию Gradle в Android Studio
  8. 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
  9. Comments
  10. ghost commented May 10, 2017 •
  11. biesbjerg commented May 10, 2017
  12. mburger81 commented May 10, 2017
  13. ghost commented May 10, 2017 •
  14. mburger81 commented May 10, 2017
  15. ghost commented May 10, 2017
  16. ghost commented May 10, 2017
  17. ionic 2-Error не удалось найти установленную версию Gradle в Android Studio
  18. 17 ответов
  19. 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
  20. 12 thoughts on “ 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 ”
  21. 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
  22. 2 thoughts on “ 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 ”
  23. Fantashit’s Art
  24. Fantashit’s Art
  25. Privacy Overview

Resolve! Could not find an installed version of Gradle either in Android Studio,

During installation and adding the Android platform to your Ionic application you may face the following issue in your terminal window:

[cordova] Could not find an installed version of Gradle either in Android Studio,
[cordova] or on your system to install the gradle wrapper. Please include gradle
[cordova] in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.

cordova.cmd build android exited with exit code 1.

Re-running this command with the —verbose flag may provide more information.

How to resolve this issue?

You need to install/ Download the Gradle setup and add it in your Environment Variables. Just follow these steps:

Step 1) Download Gradle files

Go to the Gradle release page and download the latest zip file. Which reads like gradle-6.2-bin.zip

Step 2) Extract this file and place in

C:\Gradle\gradle-6.2

Step 3) Copy path then add in Environment Variables

Open Environment Variables then add step 2 bin path to it.

That’s it now reopen terminal window to run Ionic commands to create productions files

Источник

ionic 2 — Ошибка Не удалось найти установленную версию Gradle в Android Studio

Я создаю проект ionic 2 и добавляю диагностический плагин Cordova следующим образом:

и добавить платформу Android, как это:

но при сборке с ionic build android консолью выдают эту ошибку:

и я пытаюсь скачать вручную gradle.3.3-all.zip и изменить этот дистрибутивUrl var в платформе / android / cordova / lib / builders / GradleBuilder.js

но не работает и консоль дает мне последнюю ошибку.

Я не знаю, как добавить Gradle для Android @ последней версии

Попробуйте установить gradle и включить его в свой путь. Нажмите на ссылку ниже, чтобы получить руководство. https://gradle.org/install

/ apps / android-studio $ find. -типа f -name gradle ./gradle/gradle-4.1/bin/gradle. Извините за разметку, это комментарий. Таким образом, вы можете добавить это в переменную PATH, но вам нужно будет сохранить эту версию установленной.

Жизнь слишком коротка, чтобы тратить ее на путаницу и т. Д.

Поскольку на iMac был установлен Homebrew , я просто запустил эту команду:

Проект Ionic3 начал успешно строить.

Просто установите Gradle на Linux, даже если установлена ​​Android Studio,

Для пользователей Windows :

Скачать бинарник gradle по ссылке в ответе Gradle Download

Распакуйте zip-файл в «C: \ Gradle» или в другое место.

откройте диалоговое окно «Изменить переменную среды» из меню «Пуск»

Нажмите «Создать» под системными переменными и добавьте, как показано ниже

Имя GRADLE_HOME переменной Значение переменной C:\Gradle\gradle-4.0.1

Затем выберите PATH переменную из списка системных переменных

добавить путь Gradle к значению переменной, как это C:\Gradle\gradle-4.0.1\bin

затем нажмите win Key + R type cmd, затем введите> в командной строке типа строке gradle -v

если настройка верна, вы увидите подробности установки Gradle

Существует проблема с Cordova версии 6.4.0 и Android 6.2.1 .so, пожалуйста, попробуйте с ниже совместимыми версиями

Кордова версия должна быть 6.4.0

Установите Android в свой проект

платформа sudo cordova добавить android@6.1.2

sudo ионная платформа добавить android@6.1.2

В Ubuntu установка последней версии gradle решила проблему для меня.

Попробуйте эти шаги, чтобы установить последнюю версию,

затем построить, используя,

Читайте также:  Стилусы для андроид телефонов

cordova build android или ionic cordova build android

Примечание: При установке Gradle из убунта репо, он будет установить старую версию 1.4 и не поможет, так что sudo apt-get install gradle сам по себе не поможет в большинстве случаев, если вы не добавить репозиторий ppa:cwchien/gradle ранее

Я уже установил Android Studio, и мне просто нужно добавить gradle PATH в

/ .bash_profile на моем MacOSX Mojave. Также, если Gradle обновлен, возможно, потребуется еще раз обновить путь.

Когда вы отредактируете ваш .bash_profile, запустите команду ниже, чтобы прочитать ее снова.

Для Windows вы можете попробовать следующее решение

Скопируйте свой gradle—>bin путь и добавьте его в system environment variable path .

В моем случае путь Gradle

Это решение сработало для меня.

На Ubuntu 18.04 я установил gradle с помощью:

Если вы не хотите явно устанавливать gradle только для решения этой проблемы, вы можете преодолеть это, выполнив обходной путь, как указано ниже:

  1. Найдите check_reqs.js файл в папке платформы \ android \ cordova \ lib
  2. Отредактируйте остальную часть androidStudioPath переменной проверки нуля в get_gradle_wrapper функции, как показано ниже:

Существующий код:

Модифицированный код:

ПРИМЕЧАНИЕ. Это изменение необходимо выполнять каждый раз, когда платформа Android удаляется и повторно добавляется.

ОБНОВЛЕНИЕ: вышеупомянутое решение будет работать до версии Android Cordova 6.3.0. Для Cordova Android 6.4.0 и выше, Gradle должен быть установлен как отдельная зависимость. Пожалуйста, найдите примечания к выпуску Cordova Android 6.4.0 для получения дополнительной информации об этом.

Источник

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

ghost commented May 10, 2017 •

Ionic version:

[x] 3.x

I’m submitting a .
[x ] bug report

Current behavior:

ionic run android —prod results in below 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

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:

biesbjerg commented May 10, 2017

Did you do as suggested by the error message?

You need to install Android Studio make sure it’s in your PATH .

Here’s my PATH for example:
PATH=»/Users/kim/.node/bin:/usr/local/bin:/usr/local/sbin:

mburger81 commented May 10, 2017

On cordova@7.0.0 and SDK Tools 26.x.x you have to install gradle by your own.

If you have an debian/ubuntu system you can do this like that
sudo apt-get install gradle

ghost commented May 10, 2017 •

@mburger81 — how to get this on Mac OS? I don’t have Android Studio Installed

mburger81 commented May 10, 2017

google how to install gradle on Mac! 😄

ghost commented May 10, 2017

@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?

ghost commented May 10, 2017

Here is the solution I found for Mac

Download the Gradle Binary Only Distribution from https://gradle.org/gradle-download/

Open a terminal
Run the following to unzip the android sdk to the Development directory that is under your user home directory

/Development
Open up the vi editor and edit your bash profile. We need to add in the GRADLE_HOME environment variable

/.bash_profile
To edit in vi hit i to enter edit mode and add the text below to the .bash_profile

/Development/gradle-3.1/bin
Press the esc key to exit edit mode
Press : (colon key) to enter command mode.
type wq and press enter to save and exit vi
Run the following to make the change active in your existing session

Источник

ionic 2-Error не удалось найти установленную версию Gradle в Android Studio

Я создаю проект ionic 2 и добавляю диагностический плагин cordova следующим образом:

и добавить платформу android, как это:

но когда строят с ionic build android консоль дает мне эту ошибку :

и я пытаюсь загрузить вручную gradle.3.3-все.ZIP и изменение этого distributionUrl ВАР в платформы/Андроид/Кордова/Либ/строителей/GradleBuilder.js

но не работает и консоль дает мне последняя ошибка.

Я не знаю, как добавить gradle для android@последняя версия

17 ответов

попробуйте установить gradle и включить его в свой путь. Нажмите ссылку ниже, чтобы получить руководство. https://gradle.org/install

жизнь слишком коротка, чтобы тратить ее на возню с путями и т. д.

С тех пор, как я доморощенного установлен на iMac, Я только что запустил эту команду:

проект Ionic3 начал успешно строиться.

просто установите gradle на linux, даже если установлена Android Studio,

для пользователей windows :

скачать Gradle binary по ссылке в ответе

извлеките zip-файл в C:\Gradle или где-то еще

открыть диалоговое окно изменить переменную среды из меню Пуск > Поиск

нажмите «Создать» в разделе системные переменные и добавить, как показано ниже

Читайте также:  Гео трекер для андроида

Имя Переменной GRADLE_HOME Значение Переменной C:\Gradle\gradle-4.0.1

выберите PATH переменная из списка системных переменных

добавьте путь gradle к значению переменной, как это C:\Gradle\gradle-4.0.1\bin

затем нажмите клавишу win+R введите cmd, затем введите > в командный терминал введите gradle-v

если настройка верна, вы увидите детали установки gradle

существует проблема с cordova версии 6.4.0 и android 6.2.1 .Итак, пожалуйста, попробуйте С ниже совместимыми версиями

версия cordova должна быть 6.4.0

установите android в свой проект

добавить платформу sudo cordova android@6.1.2

добавить платформу sudo ionic android@6.1.2

в Ubuntu установка последней версии gradle решил проблему для меня.

попробуйте эти шаги, чтобы установить последнюю версию,

затем построить с помощью,

cordova build android или ionic cordova build android

Примечание: если вы установите gradle из Ubuntu repo, он установит старую версию 1.4 и не поможет, поэтому sudo apt-get install gradle в одиночку не поможет в большинстве случаев, если вы не добавили РЕПО ppa:cwchien/gradle ранее

если вы не хотите устанавливать gradle явно только для решения этой проблемы, вы можете преодолеть это, следуя обходному пути, как указано ниже:

  1. искать check_reqs.js файл в папке платформы\android\cordova\lib
  2. редактировать другую часть androidStudioPath переменная null check in get_gradle_wrapper функции как ниже:

существующий код:

модифицированных код:

Примечание: это изменение должно быть сделано каждый раз, когда платформа android удаляется и повторно добавляется

обновление: выше обходной путь будет работать нормально до Cordova Android версии 6.3.0. Для Cordova Android 6.4.0 и выше Gradle необходимо установить как автономную зависимость. Пожалуйста, найдите Cordova Android 6.4.0 примечания к выпуску подробнее о этот.

Я решаю эту проблему

скачать gradle.zip С этого сайта https://gradle.org/install. И следуйте инструкциям, указанным на сайте.

затем откройте другой терминал cmd и выполнить команду:

прежде всего удалите ionic и cordova, позже установите переменные envarionment JAVA_HOME , ANDROID_HOME и PATH затем переустановите ionic cordova и добавьте платформу, например:

ionic правильно настроит пакеты gradle.

В Arch Linux / Manjaro: судо Пакман -с Gradle в

Я на Microsoft Windows:

Я столкнулся с этой ошибкой после обновления Android Studio от 2.3.3 до 3.0. Я решил это, изменив путь к gradle в переменной среды PATH, которая теперь «gradle-4.1» для Android Studio 3.0 (ранее «gradle-3.2» для Android Studio 2.3.3)

просто установите android studio и выберите папку sdk в качестве папки sdk Android studio по умолчанию, а затем Android studio восстановит всю область повреждений и загрузите необходимые файлы.

загрузите последнюю версию gradle из https://gradle.org/install и установите путь gradle до bin в переменной PATH и экспортируйте путь в каталог, в котором вы работаете

пример: экспорт PATH=/home/abc/android-sdk-linux/tools:/home/abc/android-sdk-linux/platform-tools:/home/abc/android-sdk-linux/tools:/home/abc/android-sdk-linux/platform-tools:/home/abc/Downloads/gradle-4.4.1/bin

Я провел весь день, чтобы решить это и в конечном итоге это решение сработало для меня,

Источник

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

Ionic version:

[x] 3.x

I’m submitting a …
[x ] bug report

Current behavior:

ionic run android —prod results in below 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

Expected behavior:

ionic run android –prod must build and run on device connected

Ionic info:

12 thoughts on “ 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 ”

On cordova@7.0.0 and SDK Tools 26.x.x you have to install gradle by your own.

If you have an debian/ubuntu system you can do this like that
sudo apt-get install gradle

google how to install gradle on Mac! 😄

Here is the solution I found for Mac

Download the Gradle Binary Only Distribution from https://gradle.org/gradle-download/

Open a terminal
Run the following to unzip the android sdk to the Development directory that is under your user home directory

/Development
Open up the vi editor and edit your bash profile. We need to add in the GRADLE_HOME environment variable

/.bash_profile
To edit in vi hit i to enter edit mode and add the text below to the .bash_profile

/Development/gradle-3.1/bin
Press the esc key to exit edit mode
Press : (colon key) to enter command mode.
type wq and press enter to save and exit vi
Run the following to make the change active in your existing session

/.bash_profile
Test it by running

What to do on windows ?!

Run this command to install gradle on a mac:

brew update && brew install gradle

This issue is closed currently, but it still does not seem to work without explicit installation of Gradle.
In my case I have:

  • latest Android Studio installed (v3.0.1) (under Applications/ folder which is default location)
  • latest android-sdk installed

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 cordova compile android —debug :

Читайте также:  Неправильно определяется часовой пояс android

My ionic info output:

This issue shouldn’t be closed, the issue is still present using the latest Android Studio, cordova and ionic

Same issue here.

Run: brew install gradle

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

/.bash_profile (or equivalent):

Note: in the future, you’ll likely need to change the version above from gradle-4.4 . To check the version you have installed, just:

ls /Applications/Android\ Studio.app/Contents/gradle/

gradle@4.4 (install sdkman, sdk install gradle 4.4 )working for cordova android@7.1.0

Thanks to @bitjson I could configure the .bash_profile to be:

And this command (I was gettind EACCESS error):

sudo chmod a+x «/Applications/Android Studio.app/Contents/gradle/gradle-4.4/bin/gradle»

I could ionic cordova run android my app!

(Mac OS X + Ionic + NodeJS = last versions)

Comments are closed.

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

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).

2 thoughts on “ 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 ”

*For linux:*
If you use linux, you have to specify where android is installed.

You can edit your .bashrc and write these 2 lines.

export ANDROID_HOME=”$HOME/Android/Sdk”
export 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 :


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
,
or mute the thread

.

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

Comments are closed.

Fantashit’s Art

Fantashit’s Art

Copyright © 2021 Fantas. hit

Privacy Overview

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

Cookie Duration Description
cookielawinfo-checbox-analytics 11 months This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category «Analytics».
cookielawinfo-checbox-functional 11 months The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category «Functional».
cookielawinfo-checbox-others 11 months This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category «Other.
cookielawinfo-checkbox-necessary 11 months This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category «Necessary».
cookielawinfo-checkbox-performance 11 months This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category «Performance».
viewed_cookie_policy 11 months The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Источник

Оцените статью