Ok, this is going to be a really stupid question but I can't figure out a solution. So I added a .jar file to Android Studio the following way:
- exported .jar file using IntelliJ IDEA
- copied .jar to
libs
folder underapp
folder in the Project view in Android Studio - Right clicked the .jar and selected "Add as Library"
The line compile files('libs/MyJar.jar')
was added to the build.gradle file. However I cannot figure out how to actually use the classes in the jar. I can't seem to import it at all, and it is as if I didn't actually add anything. What am I doing wrong?
I know this is an idiotic question, but I can't find a solution.