简体   繁体   English

将cordova android项目导入到netbeans中。 无法加载Build.xml文件

[英]importing a cordova android project in to netbeans. Build.xml file cannot be loaded

I imported a cordova project based on HTML5 which was developed by my friend and tried to run it on Netbeans. 我导入了由我的朋友开发的基于HTML5的cordova项目,并试图在Netbeans上运行它。 But when I run it, it says 但是当我运行它时,它说

cannot find ..\\my friend's android sdk path\\build.xml imported from ..\\my project's path(not my sdk path)\\build.xml

why this problem get to happen and how can I overcome the issue and run the project. 为什么会发生此问题,以及如何解决该问题并运行项目。

I found a si,iler issue here and edited local.properties file under the netbeans project\\platforms as answered there. 我在这里发现了一个si,iler问题并在那里回答了netbeans project \\ platforms下的local.properties文件。 But I am still getting the error. 但是我仍然遇到错误。 help me. 帮我。 thank you .. 谢谢 ..

  1. Have you checked if your path has the 'build.xml'? 您是否检查过路径中是否包含“ build.xml”? It should be in %SDK%\\tools. 它应该在%SDK%\\ tools中。 Like the comments in the question you linked, maybe you have a bad SDK. 就像您链接的问题中的评论一样,也许您的SDK不好。

    check which android version your app is and which versions are available in the SDK. 检查您的应用是哪个Android版本以及SDK中提供了哪些版本。 This error is thrown by netbeans if there is no matching SDK version. 如果没有匹配的SDK版本,netbeans将引发此错误。

  2. You need to set your environment variable, like they do here : (You can use only 'C:\\Development\\Android\\android-sdk-windows', no '\\platform-tools\\') 您需要像在这里一样设置环境变量:(您只能使用'C:\\ Development \\ Android \\ android-sdk-windows',不能使用'\\ platform-tools \\')

    Add the platform-tools\\ directory to your Windows path: ;C:\\Development\\Android\\android-sdk-windows\\platform-tools\\ 将platform-tools \\目录添加到Windows路径:; C:\\ Development \\ Android \\ android-sdk-windows \\ platform-tools \\

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM