Search code examples
javaandroid-runtime

How can I compile a class with non existing references?


I'm currently able to compile a class that has this import statement:

import com.panframe.android.lib.*;

But there is no external dependency which satisfies this statement. The code somehow uses this import statement. Even Android Studio warns me about this non existent class:

enter image description here

How I am able to compile this class? Shouldn't compiler prevent this from happening?


Solution

  • Turns out I was wrong. Needed references was in libs folder, and Android Studio was not able to see these references.

    It was an Android Studio bug, updating it fixed my issue.