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

Schreibe einen Kommentar