简体   繁体   English

将Android平台添加到NetBeans 6.9时出现问题

[英]Problem adding Android platform to NetBeans 6.9

I've been using Netbeans 6.9 quite happily with Android for a few months but I completely wiped my SDK yesterday and now, after reinstalling it, I can't get Netbeans to create the Android platform. 我已经很高兴在Android上使用Netbeans 6.9了几个月,但是昨天和现在我已经完全擦除了我的SDK,重新安装后,我无法让Netbeans创建Android平台。 I can select the platform okay but once I press FINISH nothing ever appears in Netbeans. 我可以选择平台,但是一旦我按FINISH键,Netbeans就不会出现任何内容。 I've even re-installed Netbeans but no joy. 我什至重新安装了Netbeans,但没有任何乐趣。

Could someone post the contents of their platform XML file for Android? 有人可以发布其Android平台XML文件的内容吗? I'm thinking I can just enter this file manually and have Netbeans pick it up. 我想我可以手动输入此文件,然后让Netbeans进行拾取。

Any other ideas greatly appreciated! 任何其他想法,不胜感激!

I had the same problem with netbeans 6.9.1, mine was related with some incompatibility between 32bit and 64bit java. 我在netbeans 6.9.1中遇到了同样的问题,我的问题与32位和64位Java之间的某些不兼容有关。

I have Win7 x64 and also had java x64. 我有Win7 x64,也有java x64。 removed x64 java and installed x86 java without reinstalling netbeans probaly caused the problem This solved it for me. 删除x64 java并安装x86 java而不重新安装netbeans可能导致了问题。此问题为我解决了。

  • uninstall netbeans 卸载netbeans
  • uninstall all java jre and jdk's 卸载所有Java jre和jdk

  • reinstall 32bit java 重新安装32位Java

  • reinstall netbeans 重新安装netbeans
  • reinstall nbandroid 重新安装nbandroid

I can only recomend you use Eclips for developing for android. 我只能建议您使用Eclips进行android开发。 2 major adventages are: 1. Easly install JDK wich is spesific for eclips. 2个主要方面是:1.轻松安装JDK对于eclips非常有用。 2. You get an emulator built in, making debuging even fun ;) 2.您将获得一个内置的模拟器,这使调试变得更加有趣;)

on one forum i found: simply cut and paste the yourandroidlocation/platforms/android-1.1 (what you prefer, your current android platform) folder to the yourandroidlocation/. 在一个论坛上,我发现:只需将yourandroidlocation / platforms / android-1.1(您希望使用的当前Android平台)文件夹剪切并粘贴到yourandroidlocation /中。 no files will be overwritten and now the android.jar and the other folders are on the right position. 没有文件将被覆盖,现在android.jar和其他文件夹在正确的位置。

it solve for me....hi 它为我解决....嗨

Note that this whole thread is obsolete now. 请注意,整个线程现在已过时。 The current version of android plugin for NetBeans ( http://www.nbandroid.org ) does not register Android platform in Java platform manager. 当前版本的NetBeans安卓插件( http://www.nbandroid.org )未在Java Platform Manager中注册Android平台。 Instead it looks into .properties files in your project to find Android SDK location and target platform that is used to build your project. 相反,它会查看项目中的.properties文件,以查找用于构建项目的Android SDK位置和目标平台。

-Radim -Radim

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

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