I'm using Android Studio for my Android application.
My code works and compiles.
Recently, the IDE showes me error (red lines) on getClass of the following code:
fragment.getClass().getSimpleName()
But still the application compiles and runs.
The error is:
Ambiguous method call. Both
getClass () in Object and
getClass () in Object match.
Can some one explain me what is it about? and why the code still running?