Doubt of beginner javax.imageio library


I'm trying to do this import in java studio

import javax.imageio.ImageIO;
import javax.imageio.ImageReader;

but I'm getting this error:

cannot resolve symbol'ImageIO'

How can I fix this?


The problem is that this class is not supported for Android. If you try looking for this class in Developer.Android , you'll see that it doesn't appear.

According to this question asked in SOen, you can use the Bitmap class.

Scroll to Top