R.java失踪的Andr​​oid项目在NetBeans项目、Andr、java、NetBeans

由网友(Cartoon(木棉花))分享简介:我这样做是为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...

我这样做是为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 samplesandroid-11ApiDemos 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

阅读全文

相关推荐

最新文章