Library Java Can't Resolve In Android Studio 3.1
I really need help because I try search other forum and other problem same answer regarding to javax.imageio.ImageIO and java.awt.image.BufferedImage cannot be resolved in android
Solution 1:
The packages javax.imageio.ImageIO and java.awt.image.BufferedImage are not available on android.You should use Bitmaps instead. To read a bitmap from a file you should do this instead.
BitmapFactory.Options options = new BitmapFactory.Options();
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
Bitmap bitmap = BitmapFactory.decodeFile(photoPath, options);
Post a Comment for "Library Java Can't Resolve In Android Studio 3.1"