Java – How to import java.awt.image.BufferedImage in Android Studio

androidandroid-studiobufferedimagejava

I need my android app to recognize BufferedImage and I am using Android Studio.
I've seen that there is a way to import JRE library system in Eclipse but I am having trouble doing so in Android Studio.

Any ideas?

Thanks!

Best Answer

You can't.

The AWT package is not supported in Android, you need to change your implementation to use the Android classes.

See these similar questions:

Porting AWT graphics code to Android

How to add java AWT image package in Android

Using AWT with Android