Bitmap() is not public

Viewed 1988

The problem is simple.

public Bitmap bm = new Bitmap()

The following code throws error saying Bitmap() is not public in Bitmap; cannot be accessed from outside package. The thing is that it is public (android.graphics):

public final class Bitmap implements Parcelable { .. }

I googled a lot and all kinds of such question come to problem when this class (Bitmap, in my case) wasn't set public. I don't get what's wrong. Is it because Bitmap class is final? Then how should i declare a variable of Bitmap type?

Any tip would be appreciated.

Already tried cleaning and rebuilding project.

2 Answers
Related