我已经安装了离子,科尔多瓦和android。 但离子也没有创造的Android项目。 我重视的误差。
C:\Users\shri\myapp>ionic platform add android Creating android project... C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:126 throw e; ^ Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions. at C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\lib\check_reqs.js:158:19 at _fulfilled (C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:798:54) at self.promiseDispatch.done (C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:827:30) at Promise.promise.promiseDispatch (C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:760:13) at C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:821:14 at flush (C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\node_modules\q\q.js:108:17) at process._tickCallback (node.js:419:13) at Function.Module.runMain (module.js:499:11) at startup (node.js:119:16) at node.js:906:3 Error: C:\Users\shri.cordova\lib\npm_cache\cordova-android\3.6.3\package\bin\create.bat: Command failed with exit code 8 at ChildProcess.whenDone (C:\Users\shri\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23) at ChildProcess.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)