Hinzufügen von android-Plattform zu einer Ionischen (Cordova) + Genymotion-Projekt in Ubuntu 14.04
Hier sind meine Konfigurationen:
OS: Ubuntu 14.04
Genymotion: 2.3.0
node: v0.10.25
npm: 1.3.10
cordova: 3.6.3-0.2.13
ionic: 1.2.7
Nachdem ich erstellte eine Ionische Projekt habe ich versucht, indem die Android-Plattform zu:
$ ionic start myApp sidemenu
...
$ cd myApp
$ ionic platform add android
Creating android project...
/home/mehran/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126
throw e;
^
Error: Failed to run "android". Make sure you have the latest Android SDK installed, and that the "android" command (inside the tools/ folder) is added to your PATH.
at /home/mehran/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/lib/check_reqs.js:43:27
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:466:12)
Error: /home/mehran/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135: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)
Das problem ist, dass es keine android
im installiert Genymotion-Ordner. Soll ich zum installieren der original-android-SDK?
Es ist der Erwähnung Wert, daß die installiert Genymotion beginnt die emulierten android auf seinem eigenen perfekt.
InformationsquelleAutor Mehran | 2014-10-11
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ja, Sie müssen installieren Sie die Android SDK. Sie können es hier finden: http://developer.android.com/sdk/index.html
Müssen Sie auch hinzufügen, um den Ordner tools auf deinem WEG. So kann die
android
BefehlExportieren, wie es dies:
Ersetzen
<PATH_TO_ANDROID_SDK>
mit dem absoluten Pfad zum Android-SDK.InformationsquelleAutor eyal-lezmy
bevor Sie die android-Plattform, die Sie benötigen, installieren Sie die Android SDK. Das Android SDK bietet Ihnen die API-Bibliotheken und Entwickler-tools zum erstellen, testen und Debuggen von apps für Android.
In Fall, dass Sie bereits das SDK installiert versuchen, zu aktualisieren, um die neueste version des Android SDK-Tools.
InformationsquelleAutor Fede Sardo