开发者

Android R.drawable symbol not found... (using netbean)

First question

Wondering what is the correct way to import files downloaded from http://www.codemobiles.com/forum/viewtopic.php?t=876 into netbean.

These files don't have netbean workspace formatting.

It is a folder that consist of bin gen res src .classpath .project AndroidManifest.xml default.propert开发者_如何转开发ies

I tried to import to netbean but fail.

Should I just create a fresh new project, then replacing it with all these files?

Second question

I have created a new project called AccelerometerTest and paste all the codes provided by android sdk tool at /android-11/AccelerometerPlay folder into this new netbean project.

Then Clean and Build.

But AccelerometerPlayActivity.java compilation fail with error below:

Cannot find symbol
Symbol: variable ball
location: class android.R.drawable

Cannot find symbol
Symbol: variable wood
location: class android.R.drawable

Wondering how to fix it...


You should delete related files in \out\target\common\obj\APPS and I test this ok which the problem is same as you posted.


Clean and Rebuild your project it shall work

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜