Phonegap Build Android:引用错误

3

我正在为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,但没有得到积极的反馈。我该怎么办?
2个回答

3
我遇到了同样的问题。看起来在/platforms/android/local.properties/platforms/android/Cordovalib/local.properties文件中存储了指向adt捆绑包路径的引用。我的问题是这些文件已经被检入源代码控制中,所以它们给出的路径针对另一个环境配置。修改这些路径指向我的本地机器上的正确路径就解决了我的问题。
这里有一个帮助我解决问题的网站链接:http://thelogbox.com/cannot-find-buildxml/

0

您安装了不同版本的PhoneGap(可能是3.4,而应用程序是在3.3上编写的)。您可以更改.cordova>config.json文件,并设置相同版本的PhoneGap(3.3)。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接