开发者

Android Issue with Resource after upgrade.

I have an app, and stupid me decided to change a resource in the file from being filename.bmp to being a png, and released an upgrade with this, I removed the .bmp from the APK and added the PNG, and placed it on the ma开发者_如何转开发rketplace.

Now, I have some users who are not able to run the app, it is failing with a file not found on the line referencing the resource name in the VIEW XML description.

Now, it is only some users, not all.. but its still infuriating, when a suer upgrades, are the old APK files removed? IE is the old .BMP file gone? I have been unable to fully replicated the problem on my equipment, but I am working off the theory that the .BMP and the .PNG file are now both in the resource/drawable directory and the XML inflate is just getting confused.


You will need to rename the files BMP and PNG to completely different names. This could cause confusion though.

I would recommend using one file type for all applications. And it may be that some user's are not experiencing the issue is because of screen density. Make sure all of the resources use the same naming convention and are availible for each screen size.


Rename the file to something completely different.


Have you tried cleaning your project?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜