On Jan 10, 3:29 pm, Hovo <
hovhannes.safar...@gmail.com> wrote:
> And if we comment some ID's in our layout xml files, it run's again.
> Our project is huge, and there are many library projects added to it.
>
> My question is how can we fix this, and is there a limitation on ID
> count in android xml files? Or maybe it is an android bug ?
There is, indeed a Dalvik resource limit of 64k. According to [1],
there should be some support for more than 64k const strings, but
field and method references still need to fit into 16b of opcode.
Other people have complained about this [1-3], and I have filed a bug
about the poor-quality diagnostic message [4]. You might like to star
these issues to stay abreast of developments (and indicate that you
think they're important!).
In the meantime, are you using ProGuard to strip unneeded references?
Jon
[1]
http://code.google.com/p/android/issues/detail?id=7147#c6
[2]
http://code.google.com/p/android/issues/detail?id=15603
[3]
http://code.google.com/p/android/issues/detail?id=20814
[4]
http://code.google.com/p/android/issues/detail?id=26203