Looking at the error message I noticed something strange: java.lang.NoClassDefFoundError: android.graphic3.Bitmap $CompressFormat
It is trying to load the class from the package android.graphic3 instead of android.graphics. If that is truly the case, it looks like a corruption in your compiled code. On Jan 12, 6:51 am, String <[email protected]> wrote: > I've got a real head-scratcher here, folks. At least it is for me. > > Quite recently (last couple of days?), I've begun to see the following error > in my Console: > > FATAL EXCEPTION: main > java.lang.NoClassDefFoundError: android.graphic3.Bitmap$CompressFormat > > and the line that's throwing it looks like this: > > bitmap.compress(CompressFormat.PNG, 100, fos); > > where "bitmap" is, not surprisingly, and ordinary Bitmap, and "fos" was > declared like this: > > FileOutputStream fos = new FileOutputStream(filename); > > Now, this Bitmap.compress() call has been working fine, without > modification, for a year and a half. Given it's writing to the filesystem, I > could imagine it might be an IO error of some sort - except that I'm > trapping IOException already, and of course, the error thrown > is NoClassDefFoundError. So I'm stumped. It looks like the system is > suddenly unable to find either CompressFormat or CompressFormat.PNG, but > that doesn't make any sense at all. > > Any ideas? > > String -- 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

