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