I set the JAVA_HOME and ANDROID_HOME environment variables:

enter image description here

and also changed the Path variable by adding %Android_HOME%\tools;%Android_HOME%\platform-tools :

enter image description here

Still, when I run the “ phonegap requirements android ” command, I get an error:

enter image description here

That is, the error says that the Android SDK was not found:

Android SDK not found. Make sure that it is installed. If it is not the default location, set the ANDROID_HOME environment variable.

but at the same time the gradle search takes place in the ANDROID_HOME folder:

Looked here: D: \ Android \ sdk \ tools \ templates \ gradle \ wrapper

and a command call with "android ..." from the command window gives the result:

enter image description here

which means that the variables associated with android-sdk are set correctly ...

What is the reason for this error and how can this error be corrected?

  • I hope you restarted your PC after setting the environment variables, for this is Windows. - mit
  • @mit, after rebooting the PC everything is the same - Ksenia

0