简体   繁体   中英

Very strange error when importing images to Eclipse

I found a very strange and anoying bug. Im developing in Eclipse, i use several images for my app. Sometimes when i import a new image to the project and use it somewhere in my app, after the test run all the images are went to another places... Its like every image has changed their resource ID and they are all moved to another places... background loads for buttons, button image loads for scrollbars.. etc... every image is bugged and appear in random places!

Nothing can solve this bug, except deleting my app manually, then run again. I work on my phone, not Emulator.

It is really annoying, i dont want in the future that when im updating in market, the users will get a messed up app...

Anybody know something about this?

那可能是因为R.java搞砸了。尝试执行Project-> Clean看看是否能解决问题

If you are importing any image make sure that the name of the images in not in Capital letter and also its name doesn't start with any numeric value . Otherwise its going to create problem in generating its id in R.java.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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