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.

Getting a DexArchiveBuilderException

See original GitHub issue

Hi,

I’m trying to use your library, but I’m getting this exception when building my app:

Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/abhimanyu/.gradle/caches/transforms-1/files-1.1/fab-reveal-menu-1.0.3.aar/9c059463728c3887708c3849d7c1c5d6/jars/classes.jar
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing com/hlab/fabrevealmenu/view/FABRevealMenu.class
Error:com.android.dx.cf.code.SimException: invalid opcode ba (invokedynamic requires --min-sdk-version >= 26)
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.dexing.DexArchiveBuilderException: com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/abhimanyu/.gradle/caches/transforms-1/files-1.1/fab-reveal-menu-1.0.3.aar/9c059463728c3887708c3849d7c1c5d6/jars/classes.jar
Information:BUILD FAILED in 11s

Can you please guide on how to fix this error. Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
diogosqcommented, Mar 27, 2018

Adding compileOptions and android.enableD8=true (with android studio 3.1) resolved the problem to me.

 compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
4reactions
androidqasimcommented, Apr 3, 2019

add this to your gradle:

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve com.android.builder.dexing ... - Stack Overflow
I am getting this exception while trying to build flutter app and tried various solutions ... DexArchiveBuilderException: Failed to process ...
Read more >
DexArchiveBuilderException when building Android ...
Hi all, I've just included the Piwik SDK for Android into my mobile application according to this tutorial Getting started ...
Read more >
Dexing fails with com.android.builder.dexing ...
DexArchiveBuilderException after NewRelic transformation. ... NewRelic is added to build otherwise the DemoApp build is getting succeeded.
Read more >
DexArchiveBuilderException with Firebase Performance ...
Compiling without the Firebase Performance monitoring library will pass the classes.jar directly to d8, and the case insensitive file system will not get...
Read more >
[Solved]-How to resolve com.android.builder.dexing ...
DexArchiveBuilderException ?-kotlin. ... DexArchiveBuilderException?-kotlin ... I am getting red line while using this dependency in android studio.
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