Cordova adding platform: Failed to install 'cordova-plugin-whitelist' CordovaError: Requirements check failed for JDK 1.8 or greater

yarek
cordova platform add android

Subproject Path: CordovaLib
Android project created with [email protected]
Installing "cordova-plugin-whitelist" for android
ANDROID_HOME=C:\Users\Proxymis\AppData\Local\Android\sdk1
JAVA_HOME=C:\Program Files\Java\jre1.8.0_121
Failed to install 'cordova-plugin-whitelist':CordovaError: Requirements check failed for JDK 1.8 or greater
    at C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\lib\check_reqs.js:278:19
    at _fulfilled (C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:834:54)
    at self.promiseDispatch.done (C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:863:30)
    at Promise.promise.promiseDispatch (C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:796:13)
    at C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:604:44
    at runSingle (C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Users\Proxymis\Desktop\sendSMS\platforms\android\cordova\node_modules\q\q.js:125:13)
    at _combinedTickCallback (node.js:370:9)
    at process._tickCallback (node.js:401:11)
Error: Requirements check failed for JDK 1.8 or greater

I think my environnement is OK:

JAVA_HOME
C:\Program Files\Java\jdk1.8.0_121

java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
juvchan

You should set your JAVA_HOME environment variable to the JDK root folder instead of JRE folder as shown below.

After correcting your JAVA_HOME, do a

cordova requirements android

to verify you have met the environment requirements for cordova android platform.

enter image description here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Cordova : Requirements check failed for JDK 1.8 or greater

From Dev

Install cordova plugin for ONE platform only

From Dev

Failed to add Push Notification Plugin into cordova

From Dev

Cordova - Install AdMob Plugin on Android Failed (Mac)

From Dev

Cordova Build failed with exception

From Dev

Cordova Plugin Whitelist Failed asking for cordova ios 4

From Dev

Cordova - Error code 1 for command | Command failed for

From Dev

Ionic app on device "Failed to load resource" after Cordova whitelist plugin is added

From Dev

build.phonegap plugin unsupported: cordova-plugin-whitelist @ 1

From Dev

cordova - Error: Failed to fetch platform android

From Dev

Java 11 requirements check failed for JDK 1.8 or greater with Cordova

From Dev

Why am I getting Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.9.1 error?

From Dev

Install cordova plugin for ONE platform only

From Dev

Cordova platform add ios - Error Command failed with exit code 2

From Dev

Cordova notification plugin failed installation (Cordova 3.6)

From Dev

Cordova - Install AdMob Plugin on Android Failed (Mac)

From Dev

Cordova build: Command failed with exit code 8

From Dev

Adding own plugin to cordova

From Dev

Cordova Build failed with exception

From Dev

Can't build Android platform in Cordova 5.0.0 with build.bat: Command failed with exit code 8

From Dev

How to install "cordova-plugin-whitelist" from command line

From Dev

Failed with exit code 1 Error In cordova

From Dev

BUILD FAILED after ionic plugin add cordova-plugin-googlemaps

From Dev

Cordova 6.4.0: android platform install Whitelist error

From Dev

Use of cordova-plugin-whitelist

From Dev

Cordova adding plugin fails

From Dev

Failed to install 'cordova-plugin-facebook4'

From Dev

Failed to fetch plugin cordova-plugin-mfp-jsonstore via registry

From Dev

Android target: not installed and plugin installation failed Cordova

Related Related

  1. 1

    Cordova : Requirements check failed for JDK 1.8 or greater

  2. 2

    Install cordova plugin for ONE platform only

  3. 3

    Failed to add Push Notification Plugin into cordova

  4. 4

    Cordova - Install AdMob Plugin on Android Failed (Mac)

  5. 5

    Cordova Build failed with exception

  6. 6

    Cordova Plugin Whitelist Failed asking for cordova ios 4

  7. 7

    Cordova - Error code 1 for command | Command failed for

  8. 8

    Ionic app on device "Failed to load resource" after Cordova whitelist plugin is added

  9. 9

    build.phonegap plugin unsupported: cordova-plugin-whitelist @ 1

  10. 10

    cordova - Error: Failed to fetch platform android

  11. 11

    Java 11 requirements check failed for JDK 1.8 or greater with Cordova

  12. 12

    Why am I getting Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.9.1 error?

  13. 13

    Install cordova plugin for ONE platform only

  14. 14

    Cordova platform add ios - Error Command failed with exit code 2

  15. 15

    Cordova notification plugin failed installation (Cordova 3.6)

  16. 16

    Cordova - Install AdMob Plugin on Android Failed (Mac)

  17. 17

    Cordova build: Command failed with exit code 8

  18. 18

    Adding own plugin to cordova

  19. 19

    Cordova Build failed with exception

  20. 20

    Can't build Android platform in Cordova 5.0.0 with build.bat: Command failed with exit code 8

  21. 21

    How to install "cordova-plugin-whitelist" from command line

  22. 22

    Failed with exit code 1 Error In cordova

  23. 23

    BUILD FAILED after ionic plugin add cordova-plugin-googlemaps

  24. 24

    Cordova 6.4.0: android platform install Whitelist error

  25. 25

    Use of cordova-plugin-whitelist

  26. 26

    Cordova adding plugin fails

  27. 27

    Failed to install 'cordova-plugin-facebook4'

  28. 28

    Failed to fetch plugin cordova-plugin-mfp-jsonstore via registry

  29. 29

    Android target: not installed and plugin installation failed Cordova

HotTag

Archive