Failed to install 'cordova-plugin-whitelist': Error using forcedroid command line

926 Views Asked by At

Here is screendshot of what i got when I run forcedroid create: Please i saw many discussion on stackoverflow like failed to install cordova-plugin but there is no answer. enter image description here

1

There are 1 best solutions below

1
Kha Lid On

this will fix the problem:

1) Add the environment variables, ANDROID_HOME and JAVA_HOME ( giving the path of the folder SDKand the one of JDKin the value).

2) In the system valriable PATH, add the path of the platform-tools the one of the tools folder.

It will fix your error successfully.