R.java失踪的Android项目在NetBeans [英] R.java Missing in Android Project in NetBeans
问题描述
我这样做是为AP计算机科学的一个项目。
I'm doing this for a project in AP Computer Science.
基础知识:
的Mac OS X 10.5.8
的NetBeans 7.0
Android的SDK 3.0(等级11)
Basics:
Mac OS X 10.5.8
NetBeans 7.0
Android SDK 3.0 (Level 11)
所以我想了一些Android的API演示了在NetBeans(我preFER过来的Eclipse)和我使用的样本\ Android为11 \ ApiDemos \为源。该R.java文件没有生成和包R不存在。我看了看其他的答案,他们说要清理并生成项目,但该选项是灰色的NetBeans中(所以只是清洁和构建选项)。什么我应该尝试之前,我切换到Eclipse的任何想法?我也有运行Windows 7,如果我需要改变操作系统的计算机。谢谢!
So I'm trying out some of the Android API Demos in NetBeans (I prefer it over Eclipse) and I'm using samples\android-11\ApiDemos\ for the source. The R.java file is not generating and "package R does not exist". I've looked at other answers, and they say to Clean and Build the Project, but that option is grayed out in NetBeans (so are just the "Clean" and "Build" options). Any ideas on what I should try before I switch to Eclipse? I also have a computer running Windows 7 if I need to change the OS. Thanks!
推荐答案
右键点击您的项目,并击筑。它会生成缺少的R舱为您服务。至少它在Netbeans的7.1为我做的
Right-click your project and hit build. It will generate the missing R class for you. At least it did for me in Netbeans 7.1
这篇关于R.java失踪的Android项目在NetBeans的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!