FABRevealMenu-master: Getting a DexArchiveBuilderException
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
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (5 by maintainers)
Adding compileOptions and android.enableD8=true (with android studio 3.1) resolved the problem to me.
add this to your gradle:
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
I am sorry guys as you are facing issues with library. When I will get free I will update with solution or will update libray if needed. 👍
Still not working after android.enableD8=true in gradle.properties file.
Doues not help android.enableD8=true