Can’t reference a paintable PNG in Java?

There are about 10 pictures in my drawable folder. But when I reference some of them in Java, it's like this:

R.drawable.example

When I press Ctrl space, only about 6 pictures are displayed. If I try to reference some pictures, they will not be displayed in the CTRL space dialog box. If I try to enter the file name manually, an error will appear in my java as if they do not exist in my drawable folder

resolvent:

Do you try to right-click the res folder in the eclipse package explorer, select refresh, go to project – > clean up, and then rebuild your project?

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>