Hi, what does R.id.content represent, a LinearLayout, RelativeLayout, TextView, etc? Try making an explicit cast to the appropriate type it is.
On Jan 5, 5:54 pm, focuser <linto...@gmail.com> wrote: > anyone? > > 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? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---