question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UNEXPECTED TOP-LEVEL EXCEPTION: Error:com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/a) does not match path (com/paypal/android/sdk/A.class)

See original GitHub issue
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/a) does not match path (com/paypal/android/sdk/A.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)
    at com.android.dx.command.dexer.Main.processClass(Main.java:749)
    ... 21 more
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/aa) does not match path (com/paypal/android/sdk/aA.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)
    at com.android.dx.command.dexer.Main.processClass(Main.java:749)
    ... 21 more
UNEXPECTED TOP-LEVEL EXCEPTION:
Error:com.android.dx.cf.iface.ParseException: class name (com/paypal/android/sdk/ab) does not match path (com/paypal/android/sdk/aB.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)
    at com.android.dx.command.dexer.Main.processClass(Main.java:749)
    ... 21 more

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:37 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
braebotcommented, Oct 7, 2015

The issue is with the 1.4.0-beta6 build tools not supporting classes that are only different through different capitalization. The PayPal SDK has classes named both A.class and a.class, yet the intermediate extraction step skips files that it thinks are duplicates. I’ll need to open a bug with the build tools folks.

1reaction
ghostcommented, Sep 22, 2015

Ok i solved by changing in Project build.grandle classpath ‘com.android.tools.build:gradle:+’ with classpath ‘com.android.tools.build:gradle:1.3.0’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error:com.android.dx.cf.iface.ParseException: bad class file ...
Check your settings.gradle and build.gradle files, and see if you have included the reference twice.
Read more >
[Q] [Solved] Error while using dx - XDA Forums
UNEXPECTED TOP-LEVEL EXCEPTION : com.android.dx.cf.iface.ParseException: class name (com/dummy/sprite/BuildConfig ) does not match path ...
Read more >
com.android.dx.cf.iface.ParseException: class name (...) does ...
今天调试一个新版的安卓软件,无法启动,报错:. UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.cf.iface.ParseException: class name ...
Read more >
com.android.dx.cf.iface.ParseException: class name (...) does ...
ParseException :classname(com/vict/fsd/plugin/chart/BarChartView)doesnotmatchpath(chart/ ... does not match path (chart/BarChartView.class).
Read more >
Exception - Android Developers
This class is deprecated and subject to removal in a future version of Java SE. It has been replaced by java.security.Policy and related...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found