The problem with the corridor, the target installation for Android is not installed

I am trying to install Cordoba on windows 7. I am following this guide: https://www.tutorialspoint.com/cordova/cordova_first_application.htm

while I fulfill the requirements for the cord , it says that the Android target is not set and set the ANDROID_HOME environment variable

I:\CordovaProject\hello>cordova requirements
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
Android SDK not found. Make sure that it is installed. If it is not at the 
default location, set the ANDROID_HOME environment variable.
Gradle: installed
Error: Some of requirements check failed

I:\CordovaProject\hello>echo %ANDROID_HOME%
C:\Users\user\AppData\Local\Android\sdk

as you can see in image 1, when I return ANDROID_HOME, it is set to the correct location. I can not resolve this error. kindly help me with this

path has the following meanings:% ANDROID_HOME% \ tools;% ANDROID_HOME% \ platform-tools

I downloaded android-25 in android studio.

​​ android: android-25 I:\CordovaProject\\\Android\CordovaLib\project.properties
I:\CordovaProject\hello\platform\android\project.properties

android,

BUILD FAILED

Total time: 31.807 secs
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
 > Could not resolve all dependencies for configuration ':classpath'.
 > Could not download uast.jar (com.android.tools.external.com-
 intellij:uast:145.597.3)
  > Could not get resource 'https://jcenter.bintray.com/com/android/tools/ex
 ternal/com-intellij/uast/145.597.3/uast-145.597.3.jar'.
     > Could not GET 'https://jcenter.bintray.com/com/android/tools/external
  /com-intellij/uast/145.597.3/uast-145.597.3.jar'.
        > akamai.bintray.com

  * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or -
   -debug   option to get more log output.
+9
4

SDK 21 ( "android-21" )

$ cordova platform remove android
$ cordova platform add android@3.7.1

SDK 22 (Android 4.1.1, "android-22" )

$ cordova platform remove android
$ cordova platform add android@4.1.1
+4

, , , sdk, sdk android-studio.

: , , :

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="22" />
+2

!

Java JAVA_HOME Path Variable Android Studio ( JRE). Android Studio, SDK Location.

After Change mine Pathand the variable JAVA_HOME(go to the control panel, system and security, system, environment variable), update the Pathvariable JAVA_HOMEin C:\Program Files\Android\Android Studio\jre.

Details ... JAVA_HOMEcontains C:\Program Files\Android\Android Studio\jrebut PathcontainsC:\Program Files\Android\Android Studio\jre\bin

checking requirements all is well!

Cordova requirements

0
source

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


All Articles