javascript-Phonegap Build Android:ReferenceError

我正在为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/

相关文章

公司前端界面用的是vue,我要嵌入到Android中生成App第一步:...
Q:我用cordova开发项目,想在app内跳转外部链接,安装了cord...
我正在使用https://github.com/arnesson/cordova-plugin-fir...
一、Cordova的基础点在混合式应用中,我们通过现有的Cordova...
cordova自定义插件注意:存放自定义cordova插件目录不能有空...
一、问题VueAPP中有一个文件下载功能,用了各种方法来实现下...