在执行蚂蚁调试命令不能建立科尔多瓦项目顺利错误 [英] Cannot build cordova project successfully error while executing ant debug command

查看:208
本文介绍了在执行蚂蚁调试命令不能建立科尔多瓦项目顺利错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个错误,是摄像头并不成功的第一次尝试调用(点击进入),所以我想在计算器<一个该解决方案href="http://stackoverflow.com/questions/18650715/phonegap3-0-0-camera-not-successful-on-first-try">Phonegap(3.0.0)相机的第一次尝试没有成功。 我遵循的步骤由提到的答案拆除机器人科尔多瓦平台去除机器人,然后我跑了第二个命令的科尔多瓦平台添加的android

I was having an error that is Camera not successful invoked on first try (click) so I tried this solution on stackoverflow Phonegap(3.0.0) Camera not successful on first try. I followed the steps as mentioned in the answer removed android by cordova platform remove android then I run the second command cordova platform add android ;

现在,当我使用NetBeans运行在科尔多瓦的Andr​​oid decvice科尔多瓦应用程序出现此错误:

Now when I use netbeans to run the cordova application on cordova android decvice this error occurs:

  exec: ant debug -f "/var/www/mobile/platforms/android/build.xml"

   [ 'ant debug -f "/var/www/mobile/platforms/android/build.xml"',
 { [Error: Command failed: 
  BUILD FAILED
  /var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:720: The following error       occurred while executing this line:
  /var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:734: Compile failed;   see the compiler error output for details.

Total time: 8 seconds
] killed: false, code: 1, signal: null },
  'Buildfile: /var/www/mobile/platforms/android/build.xml\n\n-set-mode-check:\n\n-set-debug-files:\n\n-check-env:\n [checkenv] Android SDK Tools Revision 22.3.0\n [checkenv] 
 .

 .

 .**LONG TEXT which I removed from the post **

 .

  \nBUILD FAILED\n/var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:720:   

 The following error occurred while executing this line:\n/var/www/adt-bundle-linux-x86_64- 20130917/sdk/tools/ant/build.xml:734: 
 Compile failed; see the compiler error output for   details.\n\nTotal time: 8 seconds\n' ]

 Error executing "ant debug -f "/var/www/mobile/platforms/android/build.xml"": 
 BUILD FAILED
 /var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:720: The following   error occurred while executing this line:
 /var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:734: Compile failed;  see the compiler error output for details.

 Total time: 8 seconds


 child_process.spawn(/var/www/mobile/platforms/android/cordova/build,[]) = 2

 /usr/local/lib/node_modules/cordova/node_modules/q/q.js:126
                throw e;
 Error: An error occurred while building the android project.Error executing "ant debug -f "/var/www/mobile/platforms/android/build.xml"": 
 BUILD FAILED
/var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/var/www/adt-bundle-linux-x86_64-20130917/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 8 seconds


at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/compile.js:65:22)
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)
/var/www/mobile/nbproject/build.xml:256: exec returned: 8
BUILD FAILED (total time: 4 minutes 36 seconds)

有关此问题的任何想法?

any idea about this problem?

推荐答案

我有一个类似的问题。我跑蚂蚁调试-f/path/to/project/build.xml从一个单独的终端。它显示的错误(这对我来说是憎恶埃及人有在项目名称中的空格)的更具体的描述。 <一href="http://stackoverflow.com/questions/19554965/error-building-android-app-with-cordova-3-1-cli">This回答还指出:

I was having a similar issue. I ran ant debug -f "/path/to/project/build.xml" from a separate terminal. It displayed a more specific description of the error (which for me wast that there was a space in the project name). This answer also notes:

的config.xml不能具有插件id,其编号为第一字符   后的点。例如:com.42myapp.test或com.myapp.42test不会   工作以及42com.myapp.test。它会触发从一个错误   编译器。

config.xml can't have a widget id with number as a first character after a dot. For example: com.42myapp.test or com.myapp.42test won't work as well as 42com.myapp.test. It will trigger an error from the compiler.

这篇关于在执行蚂蚁调试命令不能建立科尔多瓦项目顺利错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆