How can I import java.awt.image.BufferedImage in Android Studio

Lara Larsen picture Lara Larsen · Oct 19, 2015 · Viewed 19.6k times · Source

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!

Answer

ESala picture ESala · Oct 19, 2015

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