Cordoba 3.4.0 Installation Error Install Android Goal 19

I am trying to add the android platform to my cordova project using

cordova platform add android

However, I get the following error:

Error: Please install Android target 19 (the Android newest SDK). Make sure you have the
latest Android tools installed as well. Run "android" from your command-line to 
install/update any missing SDKs or tools.

As a suggested message, I used the android command to install all the updates. In addition to this, I also added the following path variable:

%ANT_HOME%\bin;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools;%JAVA_HOME%\bin

Other answers to similar questions that I found on the Internet suggested setting the target variable in the project.properties file to

target=android-19

I have tried all this in the last few days, but I can not get past this error. What else can I fix? By the way, I am using the 64-bit version of Windows 8.1.

EDIT:

Just wanted to add more info - when I started

android list target

I get the following output

Available Android targets

id: 1 or "android-19"
     Name: Android 4.4.2
     Type: Platform
     API level: 19
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : default/armeabi-v7a, default/x86
id: 2 or "Google Inc.:Google APIs x86:19"
 Name: Google APIs x86
 Type: Add-On
 Vendor: Google Inc.
 Revision: 4
 Description: Android + Google APIs x86
 Based on Android 4.4.2 (API level 19)
 Libraries:
  * com.android.future.usb.accessory (usb.jar)
      API for USB Accessories
  * com.google.android.media.effects (effects.jar)
      Collection of video effects
  * com.google.android.maps (maps.jar)
      API for Google Maps
 Skins: WVGA800 (default), WVGA854, WSVGA, WXGA720, HVGA, WXGA800-7in, QVGA, WQVGA400, WQVGA432, WXGA800
 Tag/ABIs : default/x86
id: 3 or "Google Inc.:Google APIs:19"
 Name: Google APIs
 Type: Add-On
 Vendor: Google Inc.
 Revision: 4
 Description: Android + Google APIs
 Based on Android 4.4.2 (API level 19)
 Libraries:
  * com.android.future.usb.accessory (usb.jar)
      API for USB Accessories
  * com.google.android.media.effects (effects.jar)
      Collection of video effects
  * com.google.android.maps (maps.jar)
      API for Google Maps
 Skins: WVGA800 (default), WVGA854, WSVGA, WXGA720, HVGA, WXGA800-7in, QVGA, WQVGA400, WQVGA432, WXGA800
 Tag/ABIs : default/armeabi-v7a
+4
6

. , [Android L, Android 4.4W (API 20) Android 4.4.2w (API 19)]

android list target

:

Available Android targets:
----------
id: 1 or "android-19"
     Name: Android 4.4.2
     Type: Platform
     API level: 19
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : default/armeabi-v7a, default/x86
----------
id: 2 or "android-20"
     Name: Android 4.4W
     Type: Platform
     API level: 20
     Revision: 1
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in, AndroidWearRound, AndroidWearSquare, AndroidWearRound, AndroidWearSquare
 Tag/ABIs : android-wear/armeabi-v7a, android-wear/x86
----------
id: 3 or "android-L"
     Name: Android L (Preview)
     Type: Platform
     API level: L
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
 Tag/ABIs : android-tv/armeabi-v7a, android-tv/x86, default/armeabi-v7a, default/x86
----------
id: 4 or "Google Inc.:Glass Development Kit Preview:19"
     Name: Glass Development Kit Preview
     Type: Add-On
     Vendor: Google Inc.
     Revision: 8
     Description: Preview of the Glass Development Kit
     Based on Android 4.4.2 (API level 19)
     Libraries:
      * com.google.android.glass (gdk.jar)
          APIs for Glass Development Kit Preview
     Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
 Tag/ABIs : no ABIs.
----------
id: 5 or "Google Inc.:Google APIs:19"
     Name: Google APIs
     Type: Add-On
     Vendor: Google Inc.
     Revision: 6
     Description: Android + Google APIs
     Based on Android 4.4.2 (API level 19)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
 Tag/ABIs : default/armeabi-v7a
----------
id: 6 or "Google Inc.:Google APIs (x86 System Image):19"
     Name: Google APIs (x86 System Image)
     Type: Add-On
     Vendor: Google Inc.
     Revision: 6
     Description: Android x86 + Google APIs
     Based on Android 4.4.2 (API level 19)
     Libraries:
      * com.google.android.media.effects (effects.jar)
          Collection of video effects
      * com.android.future.usb.accessory (usb.jar)
          API for USB Accessories
      * com.google.android.maps (maps.jar)
          API for Google Maps
     Skins: WXGA800, WXGA800-7in, HVGA, WVGA800 (default), WQVGA400, QVGA, WSVGA, WQVGA432, WXGA720, WVGA854
 Tag/ABIs : default/x86
+2

, .

android, ant java , , . , .

+1

: Android- 19

* * //

* * : platform-tools\ Windows:

C:\Development\Android\Android--\ \

. "\" Path.

MAC: PATH, Android SDK /etc/rc.common ~/.bash_profile:

PATH =/:/SBIN:/USR/:/USR/SBIN:/USR/libexec:/System/Library/CoreServices://USR/: ~//Android/Android-sdk- macosx/tools: ~//Android/android-sdk-macosx/platform-tools: export PATH

LINUX: PATH, Android- Android SDK. bash, ~/.bashrc:

export PATH =/opt/android-sdk-linux/tools/:/opt/android-sdk-linux/platform-tools/: $PATH

+1

, , , , , :

  • android.bat : enter image description here

  • find_java.bat % ANDROID_HOME%\tools\lib\ :

    /f "delims =" %% a in (' "% ~ dps0\find_java.exe" -s') java_exe = %% a

:

set java_exe=%JAVA_HOME%\java.exe 

System/Environmental vars . android.bat find_java.bat, find_java, java. java.exe System32. java.exe , , .

+1
source

On Windows, in the environment variable, try placing the java \ bin directory in front of the windows \ system32 directory.

This forces the SDK manager to use java from the java \ bin directory, otherwise it will use java located in the system32 folder.

It will help!

0
source

My solution was to add the Android SDK Build-tools 19 except 19.1!

enter image description here

0
source

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


All Articles