I set the JAVA_HOME and ANDROID_HOME environment variables:
and also changed the Path variable by adding %Android_HOME%\tools;%Android_HOME%\platform-tools :
Still, when I run the “ phonegap requirements android ” command, I get an error:
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:
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?



