beim Laufen cordova build
aus meiner App-Verzeichnis bauen i Fehler folgende erhaltenkann nicht cordova Projekt PATH Fehler
[Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.] ERROR building one of the platforms: Error: /home/shakir/Documents/myapp/platforms/android/cordova/build: Command failed with exit code 2 You may not have the required environment or OS to build this project Error: /home/shakir/Documents/myapp/platforms/android/cordova/build: Command failed with exit code 2 at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:743:16) at Process.ChildProcess._handle.onexit (child_process.js:810:5)
ich meine ~/.profile
Datei gesetzt haben als
export ANDROID_HOME="/usr/local/android-sdk-linux"
export ANDROID_PLATFORM_TOOLS="/usr/local/android-sdk-linux/platform-tools"
folgt
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_PLATFORM_TOOLS
und echo ANDROID_HOME
geben folgende Ergebnisse
/usr/local/android-sdk-linux
Ich bin mit Ubuntu 14.04. Wie kann man dieses Problem lösen und Cordova Apps erstellen?
Stellen Sie sicher, Ihre Shell kann finden und ausführen "android" und "adb" – csantanapr