I have recently created a library Jar file that I imported in my Android project. I am able to call functions and use classes that are present in this Jar file, but Android
This worked for me:
Go to File -> Sync Project with Gradle Files.
File
Sync Project with Gradle Files