Phonegap Build schlägt mit Exit-Code 2 fehl

Ich habe gerade phonegap neu installiert und habe dieses Problem, wenn ich versuche, das Projekt mit dem folgenden Befehl zu erstellen. "phonegap build android"

ANDROID_HOME : C:\Android\sdk

ANT_HOME : C:\apache-ant-1.9.4\

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

Das detaillierte Konsolenprotokoll lautet wie folgt:

Error : executing command 'ant' , make sure you have ant installed and added to your path. 
Command finished with error code 2: cmd ....\android\cordova\build.bat.
Error building one of the platforms. Error : cmd : command failed with exit code 2. 
You may not have the required environment or OS to build this project.

So heißt es im Grunde, dass ANT nicht funktioniert. Wenn ich ANT in die Eingabeaufforderung eingebe, wird angezeigt, dass ant nicht erkannt wird. % ANT_HOME / bin / ant funktioniert jedoch.

Wenn ich den folgenden ANT-Befehl ausführe, funktioniert das Telefonbuch nicht.

set  PATH=%BASEPATH% 
 set ANT_HOME=C:\apache-ant-1.9.4\
 set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45\
 set PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%

Ich habe eine Idee, wie ich es lösen soll?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage