cordova,q.js thorwing e,android工具都在path中
所以我已经看了类似的问题的其他答案,似乎每个人都说,要解决这个问题,我需要确保Android的工具,工具和ant在我的path。 我已经确定他们在我的路上,但我仍然遇到这个问题。 为了确保我所做的一切正确,我按照以下网页中的说明进行操作: http : //ionicframework.com/docs/guide/installation.html
我正在使用Mac OS X和下面,你可以看到错误信息。
BUILD FAILED /Users/408366/Desktop/adt/sdk/tools/ant/build.xml:653: The following error occurred while executing this line: /Users/408366/Desktop/adt/sdk/tools/ant/build.xml:698: null returned: 1 Total time: 1 second /Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: ant with args: debug,-f,/Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen Error: /Users/408366/Google Drive/Web Design/AHS App/Tests/todo/platforms/android/cordova/build: 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.emit (events.js:98:17) at maybeClose (child_process.js:756:16) at Process.ChildProcess._handle.onexit (child_process.js:823:5)
我正在使用这些命令将这些东西放在我的path中:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/408366/Desktop/adt/sdk/tools/:/Users/408366/Desktop/adt/sdk/platform-tools/:/Users/408366/Desktop/ant/bin launchctl setenv PATH $PATH
谢谢!
检查文件\ hybrid \ platforms \ android \ cordova \ node_modules \ q \ q.js在1718行有一个'ms'variables。 相反,使用像15000这样的整数值。行应该像这样:
var timeoutId = setTimeout(function () { deferred.reject(new Error(message || "Timed out after " + ms + " ms")); }, 15000);
- 用node-gcm发送有效载荷通知到android设备
- 使用socket.io中的每个socket.emit获取多个套接字响应
- 通过NodeJS中的USB连接Android / iPhone设备
- 找不到与给定名称匹配的资源:attr'android:keyboardNavigationCluster'
- Bluemix中的Android上的MobileFirst令牌错误
- 发送httppost请求到Bluemix部署的Node.js应用程序时,“不幸的是应用程序已经停止”错误
- 从外部访问android localhost
- 天气 – >简单的API在Node.js->如何发送android推送通知?
- Android在应用程序未在后台运行时发送短信