javaandroidjar-with-dependencies

Android Studio cannot resolve symbol for dependency


I am using a .jar as a dependency for my project, but Android Studio keeps saying "cannot resolve symbol" when I attempt to use a class from the .jar. The weird thing is, it does recognize the classes and methods from the dependent .jar file but it wont let me use them. For example, it tries to auto complete the method but then it says it cant resolve the symbol.

I made sure that I included compile ".jar_name" under dependencies in the build.gradle. I have also tried rebuilding the project but it did not work.


Solution

  • It must have been an issue with that particular .jar file. I was never able to get it to work, but I was able to get other dependencies to work.