我正在为android构建应用程序.
但是后来我看到了:
[ReferenceError: a is not defined]
exec: ant clean -f "/Users/chaitanya/BPEase/platforms/android/build.xml"
[ 'ant clean -f "/Users/chaitanya/BPEase/platforms/android/build.xml"',
{ [Error: Command failed:
BUILD FAILED
/Users/chaitanya/BPEase/platforms/android/build.xml:90: Cannot find /Applications/eclipse/sdk/tools/ant/build.xml imported from /Users/chaitanya/BPEase/platforms/android/build.xml
Total time: 0 seconds
] killed: false, code: 1, signal: null },
'Buildfile: /Users/chaitanya/BPEase/platforms/android/build.xml\n',
'\nBUILD FAILED\n/Users/chaitanya/BPEase/platforms/android/build.xml:90: Cannot find /Applications/eclipse/sdk/tools/ant/build.xml imported from /Users/chaitanya/BPEase/platforms/android/build.xml\n\nTotal time: 0 seconds\n' ]
Error executing "ant clean -f "/Users/chaitanya/BPEase/platforms/android/build.xml"":
BUILD FAILED
/Users/chaitanya/BPEase/platforms/android/build.xml:90: Cannot find /Applications/eclipse/sdk/tools/ant/build.xml imported from /Users/chaitanya/BPEase/platforms/android/build.xml
我试图重新安装cordova.没有给我正面的反馈.我该怎么办?
解决方法:
我遇到过同样的问题.似乎有一个引用指向存储在/platforms/android/local.properties和/platforms/android/Cordovalib/local.properties文件中的adt包的路径.我的问题是,由于这些文件已签入源代码管理,因此它们为我提供了为其他环境配置的路径.修改它们以指向本地计算机的正确路径对我有用.
这里是一个链接的网站,它帮助我弄清楚了:http://thelogbox.com/cannot-find-buildxml/