我开发了一个我希望添加文件传输插件的phonegap应用程序。但是当我添加文件传输插件时。我用设备运行它(phonegap运行android)。因此警报消息显示为
BUILD FAILED
F:\SoftPhonegap\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:720: The
following error occurred while executing this line:
F:\SoftPhonegap\adt-bundle-windows-x86-20131030\sdk\tools\ant\build.xml:734: Com
pile failed; see the compiler error output for details.
Total time: 2 seconds
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,c:\project\resource_
map_phonegap\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=
ant-gen
[error] cmd: Command failed with exit code 2
please help
答案 0 :(得分:1)
我有同样的错误。你必须更新工具和平台工具,然后删除android平台并再次添加它。它对我有用。
cordova platform remove android
cordova platform add android
cordova build android