János János - 12 days ago 6
Java Question

Importing unknown java class?

I am new to Java! Doing this tutorial, and on each

import com.j256.ormlite.field.DatabaseField;


line I get an
unused import statement
error. But it is used as a super class. What can I do?

Using
Android Studio
. Dragged files into
Android Studio
.

enter image description here

enter image description here

enter image description here

Answer

You need to add these jars as library, to do so right click on these jars and select Add as Library.