Thanks Mark, The only thing I did in addition to the default build.xml created by activityCreator is replacing an xml file that has the release map key. But the string id remains the same, just the actual keys are different.
But this does sound like a suspicious spot to look at. On Jan 5, 9:59 am, Mark Murphy <[email protected]> wrote: > 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 <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

