L
Lawrence D'Oliveiro
Every time I add a new resource to an Android project (layout, string etc),
it seems to misbehave and invoke the wrong resources. After I do an ant
clean and rebuild and reinstall, it works fine.
I think what’s happening is that compiled classes are being included that
were built against the old version of R.java. What should happen if
resources change, is that R.java should be the the first thing regenerated,
before any Java source files are compiled. That will then trigger the
recompiling of all the necessary sources.
it seems to misbehave and invoke the wrong resources. After I do an ant
clean and rebuild and reinstall, it works fine.
I think what’s happening is that compiled classes are being included that
were built against the old version of R.java. What should happen if
resources change, is that R.java should be the the first thing regenerated,
before any Java source files are compiled. That will then trigger the
recompiling of all the necessary sources.