My guess, is that you forgot to change the prefix package name in your xml file to match the new package name in your class. Maybe your new package name for your class is com.ragahvsood.listdroid-1 and in your xml file you still have com.ragahvsood.listdroid.ListDroidItemView instead of com.ragahvsood.listdroid-1.ListDroidItemView. Or something like that. Thats my guess
On Jun 13, 1:40 pm, Raghav Sood <[email protected]> wrote: > I seem to have fixed that problem but now my app is force closing again but > the error is different: > > 06-13 15:48:33.338: ERROR/AndroidRuntime(453): > android.view.InflateException: Binary XML file line #2: Error inflating > class com.raghavsood.listdroid.ListDroidItemView > 06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by: > java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView > in loader > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > 06-13 17:16:09.262: ERROR/AndroidRuntime(477): > android.view.InflateException: Binary XML file line #2: Error inflating > class com.raghavsood.listdroid.ListDroidItemView > 06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by: > java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView > in loader > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > 06-13 18:57:59.895: ERROR/AndroidRuntime(484): > android.view.InflateException: Binary XML file line #2: Error inflating > class com.raghavsood.listdroid.ListDroidItemView > 06-13 18:57:59.895: ERROR/AndroidRuntime(484): Caused by: > java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView > in loader > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > 06-13 18:58:09.745: ERROR/AndroidRuntime(491): > android.view.InflateException: Binary XML file line #2: Error inflating > class com.raghavsood.listdroid.ListDroidItemView > 06-13 18:58:09.745: ERROR/AndroidRuntime(491): Caused by: > java.lang.ClassNotFoundException: com.raghavsood.listdroid.ListDroidItemView > in loader > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > > The ListDroidItemView class has not changed from the mail above except I > fixed a typo in the package name. Any ideas? > > Thanks > > > > On Mon, Jun 13, 2011 at 5:34 PM, Raghav Sood <[email protected]> wrote: > > That occurred to me. I opened it up and decompiled the .dex file and its > > quite definitely there. > > > On Mon, Jun 13, 2011 at 5:28 PM, Mark Murphy <[email protected]>wrote: > > >> On Mon, Jun 13, 2011 at 7:53 AM, Raghav Sood <[email protected]> > >> wrote: > >> > I was trying out an example from one of the android books I have. It > >> worked > >> > fine earlier but when I tried to modify the textview and list view it > >> > started force closing. The logcat output is as follows (relevant part): > >> > 06-13 15:48:33.338: ERROR/AndroidRuntime(453): > >> > android.view.InflateException: Binary XML file line #2: Error inflating > >> > class com.raghavsood.listdroid.ListDroidItemView > >> > 06-13 15:48:33.338: ERROR/AndroidRuntime(453): Caused by: > >> > java.lang.ClassNotFoundException: > >> com.raghavsood.listdroid.ListDroidItemView > >> > in loader > >> > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > >> > 06-13 17:16:09.262: ERROR/AndroidRuntime(477): > >> > android.view.InflateException: Binary XML file line #2: Error inflating > >> > class com.raghavsood.listdroid.ListDroidItemView > >> > 06-13 17:16:09.262: ERROR/AndroidRuntime(477): Caused by: > >> > java.lang.ClassNotFoundException: > >> com.raghavsood.listdroid.ListDroidItemView > >> > in loader > >> > dalvik.system.PathClassLoader[/data/app/com.ragahvsood.listdroid-1.apk] > > >> As the error indicates, com.raghavsood.listdroid.ListDroidItemView is > >> not in your APK. > > >> -- > >> Mark Murphy (a Commons Guy) > >>http://commonsware.com|http://github.com/commonsguy > >>http://commonsware.com/blog|http://twitter.com/commonsguy > > >> Warescription: Three Android Books, Plus Updates, One Low Price! > > >> -- > >> 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 > > > -- > > Raghav Sood > >http://www.raghavsood.com/ > >http://www.androidappcheck.com/ > >http://www.telstop.tel/ > > -- > Raghav > Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/ -- 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

