Creating androID project.../usr/local/lib/node_modules/cordova/node_modules/q/q.Js:126 throw e; ^Error: An error occured during creation of androID sub-project. /Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:126 throw e; ^Error: The command "androID" Failed. Make sure you have the latest AndroID SDK installed,and the "androID" command (insIDe the tools/ folder) is added to your path. at /Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/lib/check_reqs.Js:85:29 at _rejected (/Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:808:24) at /Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:834:30 at Promise.when (/Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:1079:31) at Promise.promise.promisedispatch (/Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:752:41) at /Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:574:44 at flush (/Users/XerxesNoble/.cordova/lib/androID/cordova/3.3.0/bin/node_modules/q/q.Js:108:17) at process._tickCallback (node.Js:415:13) at /usr/local/lib/node_modules/cordova/src/platform.Js:244:30 at ChildProcess.exithandler (child_process.Js:641:7) at ChildProcess.EventEmitter.emit (events.Js:98:17) at maybeClose (child_process.Js:735:16) at Socket.<anonymous> (child_process.Js:948:11) at Socket.EventEmitter.emit (events.Js:95:17) at Pipe.close (net.Js:466:12)
我确保从developer.androID安装SDK,并将我的.bash-profile $PATH设置为:
export PATH=${PATH}:AndroID/sdk/platform-tools:AndroID/sdk/tools
在这一点上,我真的不确定我还能做些什么来解决这个问题.
任何帮助将非常感激!
解决方法 此错误是因为AndroID未定义到您的计算机,这意味着您的路径不正确,因此您所要做的就是使用相应的路径更新bash配置文件.我认为PATH = ${PATH}:AndroID / sdk / platform-tools:AndroID / sdk / tools不对,它应该是这些文件夹的绝对路径.
就像是:
export PATH=/Users/your_user/adt-bundle-mac-x86_64-20130522/sdk/tools/:/Users/your_user/adt-bundle-mac-x86_64-20130522/sdk/platform-tools/:$PATH总结
以上是内存溢出为你收集整理的为什么PhoneGap / Cordova没有添加Android平台?全部内容,希望文章能够帮你解决为什么PhoneGap / Cordova没有添加Android平台?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)