com.android.dx.cf.iface.ParseException: class name (com/moat/analytics/mobile/r) does not match path (com/moat/analytics/mobile/R.class)**

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by passsy

Occurs when java version is changed. Ways to fix,

  1. Change JAVA_HOME to the previous version
  2. Change the compiler version to 1.7 for this specific module in build.gradle
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7

Solutions on the web

via GitHub by bharatbiswal
, 1 year ago
class name (com/moat/analytics/mobile/r) does not match path (com/moat/analytics/mobile/R.class)**
via Stack Overflow by melnik
, 1 year ago
bad class file magic (cafebabe) or version (0034.0000)
via Stack Overflow by Dave
, 1 year ago
bad class file magic (cafebabe) or version (0034.0000)
via unity3d.com by Unknown author, 1 year ago
bad class file magic (cafebabe) or version (0034.0000)
via Stack Overflow by RedLEON
, 2 years ago
bad class file magic (cafebabe) or version (0034.0000)
com.android.dx.cf.iface.ParseException: class name (com/moat/analytics/mobile/r) does not match path (com/moat/analytics/mobile/R.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.parseClass(Main.java:764)
at com.android.dx.command.dexer.Main.access$1500(Main.java:85)
at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1684)

Users with the same issue

Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.