I don't use Eclipse, and this kind of problem is one of the reasons. It feels like a bug in your build process, whereby your generated R.java file is not lining up with the actual resource XML file contents.
> On Jan 4, 9:04 pm, focuser <linto...@gmail.com> wrote: >> Hi, >> >> I have an app that runs well from Eclipse. But when I signed it using >> our release key, it threw a ClassCastException embedded in an >> InflateException at start up time. The code is something like the >> following: >> this.content = (ViewGroup) findViewById(R.id.content); >> I'm pretty sure R.id.content represents a ViewGroup, but It complains >> that it is a Button! >> >> I managed to fix the problem by deleting the "android:id" attribute of >> an ImageView in the main layout xml. However, this fix doesn't make >> sense to me at all. >> >> As more changes being added into the app, the error appeared again. >> >> Has anybody else encountered this problem? Does this sound like a bug >> in Android? -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.9 Published! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---