title: Android studio gradle error with top-level exception
body: <p>I have recently updated my Android Studio, since then my project does not build...I get errors like the error below:</p>
  
  <pre><code>        Error Code:
              1
          Output:
              UNEXPECTED TOP-LEVEL EXCEPTION:
              com.android.dx.cf.iface.ParseException: 
      class name (org/pervasivesystems/mobilehealth/activities/AppSettingsActivity$AppSettingsFragment)
   does not match path 
  (org/pervasivesystems/mobilehealth/Activities/AppSettingsActivity$AppSettingsFragment.class)
  </code></pre>
  
  <p>I have many of these errors...I guess it has something to do with the capital letters? I wanted to know any possible soloution to this kind of error. </p>
  
  <p>This is the full error report for one of the exceptions:</p>
  
  <pre><code>Error Code:
      1
  Output:
      UNEXPECTED TOP-LEVEL EXCEPTION:
      com.android.dx.cf.iface.ParseException: class name (org/pervasivesystems/mobilehealth/activities/AppSettingsActivity$AppSettingsFragment) does not match path (org/pervasivesystems/mobilehealth/Activities/AppSettingsActivity$AppSettingsFragment.class)
          at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:520)
          at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
          at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
          at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
          at com.android.dx.command.dexer.Main.processClass(Main.java:665)
          at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
          at com.android.dx.command.dexer.Main.access$600(Main.java:78)
          at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:170)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.processDirectory(ClassPathOpener.java:229)
          at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:158)
          at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
          at com.android.dx.command.dexer.Main.processOne(Main.java:596)
          at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
          at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
          at com.android.dx.command.dexer.Main.run(Main.java:230)
          at com.android.dx.command.dexer.Main.main(Main.java:199)
          at com.android.dx.command.Main.main(Main.java:103)
      ...while parsing org/pervasivesystems/mobilehealth/Activities/AppSettingsActivity$AppSettingsFragment.class
  </code></pre>
  
  <p>Everytime that Android Studio gets updated it messes my projects and I have to put tons of time to convert projects to be compatible with new versions! </p>