goodboop
(usa Ubuntu)
Enviado em 23/11/2014 - 22:57h
Boa noite, estou instalando o cordova para desenvolvimento para android no Ubuntu.
Instalei o node.js
instalei o sdk
configurei os caminhos no bash
e quando utilizo o comando dentro da pasta do projeto:
cordova platform add android
ele me da o seguinte erro:
[
joao@joao-NE56R:~/Documentos/mobile/hello$ cordova -d platform add android
Creating android project...
Running command: /home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/create --cli /home/joao/Documentos/mobile/hello/platforms/android com.example.hello HelloWorld
/home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/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 /home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/lib/check_reqs.js:159:19
at _fulfilled (/home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:760:13)
at /home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:821:14
at flush (/home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/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
Command finished with error code 8: /home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/create --cli,/home/joao/Documentos/mobile/hello/platforms/android,com.example.hello,HelloWorld
Error: /home/joao/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/lib/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:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)
]
já procurei em tudo lugar mais não encontrei a solução, estou batendo a cabeça nosso a dias, alguém pode me socorrer?