The task of building a cordova project

Using the latest sdk for android studio, when I am an cordova build androidion project, I get the following error:

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /home/jacsjr/Android/Sdk/tools/templates/gradle/wrapper

ANDROID_HOME points to the Sdk folder for Android studio, but is /tools/templatesmissing.

I have already tried several Einsers here, with a stack overflow, with no luck.

Loading and replacing the tool folder does not work.

How to install gradle installation correctly?

EDIT 1:

/ using the android@6.2.1 platform / using the android @ 6.2.2 platform

+4
source share
2 answers

, :

cordova platform rm android
cordova platform add android@6.2.2
0

Source: https://habr.com/ru/post/1675957/


All Articles