lunes, 4 de julio de 2011

Debugging Android “Source not found” Errors

When dimensions of a project start being considerable the plugin of Android for Eclipse starts not working properly and also very slow, when it comes to XML modifications, refractoring the code from the XML files becomes tedious.

I had a problem with the Strings resources, as the compiler didnt say anything about it, but at runtime the resource for an String wasnt not found.

android.content.res.Resources$NotFoundException: String resource ID #0x7f050022

I have finally solve the problem cleaning the project from Eclipse. And due to the bad perfomance of the plugin sometimes is a common solution.