简体   繁体   English

当我尝试在Netbeans 6.8中部署Android应用程序时,安装失败

[英]I am getting BUILD FAILED ,When i try to deploy Android Application in Netbeans 6.8

I have just started with android in Eclipse and now i want to do the same in netbeans 6.8, i Configured netbeans with all the (andoird's)jar files..etc..whatever it asked me to do.,now it is possible to open the android project in the my netbeans 6.8, but the problem that i get now, 我刚开始在Eclipse中使用android,现在我想在netbeans 6.8中做同样的事情,我用所有(andoird's)jar文件配置了netbeans..etc ..无论它要求我做什么,现在都可以打开我的netbeans 6.8中的android项目,但是我现在得到的问题是,

While i try to start new Android Project,Its getting opened and in the console ,its saying that build is successful,after i code the simple helloworld app and once i clean and build the app,its showing me as Build failed..Please help me to rectify the same.. 当我尝试启动新的Android项目时,它会打开并在控制台中显示生成成功,在我编写了简单的helloworld应用程序并清理并生成该应用程序后,显示为Build失败。我要纠正一样。

I am very much annoyed becos of this problem for the last 2 days.. 在过去的两天里,这个问题让我非常恼火。

This is the error that i got... 这是我得到的错误...

Created dir: C:\Android Practices\workspace\AndroidApplication2\dist
=C:\Android was unexpected at this time.
 C:\Android Practices\workspace\AndroidApplication2\nbproject\build-impl.xml:411: exec    returned: 255
BUILD FAILED (total time: 0 seconds)

I had this same problem and it seems to come from the whitespaces existing in the path. 我遇到了同样的问题,它似乎来自路径中存在的空白。 Try changing the directory name to one without white spaces or change the path in the ant to something like this: 尝试将目录名称更改为一个不带空格的名称,或将ant中的路径更改为如下所示:

<project ... >

<property file="local.properties" />

<property name="sdk.dir" value="C:\Docume~1\user\android-sdk-windows" />

...

which is what solved my problem. 这解决了我的问题。 Notice that Docume~1 is exactly 8 character long, I remember that was important. 请注意,Docume〜1正好是8个字符长,我记得那很重要。

I hope that helps. 希望对您有所帮助。

Edit: I updated the answer to mark where to add the line, but unless your local.properties file contains something else apart from the definition of the sdk.dir, you can delete that line 编辑:我更新了答案以标记添加行的位置,但是除非您的local.properties文件包含sdk.dir定义之外的其他内容,否则您可以删除该行

暂无
暂无

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

相关问题 我在 Android 项目中遇到 Build Failed 错误 - I am getting Build Failed error in an Android project 当我尝试运行应用程序时构建失败 - Build Failed when i try to run the app 为什么在运行Android应用程序时在DDMS中出现这些错误? - Why am I getting these errors in DDMS when running android application? 我无法打开 React 本机 android 应用程序,android 构建失败 (app:compileDebugJavaWithJavac) - I am unable to open React native android app , android build is getting failed (app:compileDebugJavaWithJavac) 尝试在Android中打开对话框时,为什么会出现NullPointerException? - Why am I getting NullPointerException when I try to open a dialog in Android? 我在尝试播放音频时遇到Mediaplayer类的运行时错误(Android / Eclipse) - I am getting a runtime error for my mediaplayer class when I try to play audio(Android/Eclipse) 当我尝试在listView android中删除一行时,为什么会出现ArrayIndexOutOfBoundsException? - Why am i getting ArrayIndexOutOfBoundsException when i try to delete a row in listView android? 尝试生成离子项目的 android 或 ios 构建时出现错误 - I am gettin an error when try to generate android or ios build of ionic project 当我尝试返回变量时,我收到此错误 - When I try to return the variable I am getting this error 为什么我在尝试 setAdapter 时会收到 nullpointerexception? - Why am i getting a nullpointerexception when I try to setAdapter?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM