ClassNotFoundError can mean it got an error while loading the class.
Perhaps it ran out of memory, just as it was loading this class?

You could try doing this first thing in your app on some small bitmap,
to preload the class, and see if that changes things. I wouldn't
consider that a workaround -- just a way to investigate the cause.

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

Reply via email to