daimajia / daimajia/AndroidViewHover

Cannot Use Along with Stackblur

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.2k
Forks
712
PR merge metrics
No merged PRs in 30d

Description

The title explain itself, this library cannot be used along with stackblur, because of a "duplicated renderscript error"
Follows the log:

Error:Execution failed for task ':app:dexDebug'.

> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
> C:\Users\Wiloo\AppData\Local\Android\sdk\build-tools\21.1.2\dx.bat --dex --no-optimize --output C:\Users\Wiloo\AndroidStudioProjects\ProtoFragment\app\build\intermediates\dex\debug --input-list=C:\Users\Wiloo\AndroidStudioProjects\ProtoFragment\app\build\intermediates\tmp\dex\debug\inputList.txt
> Error Code:
> 2
> Output:
> UNEXPECTED TOP-LEVEL EXCEPTION:
> com.android.dex.DexException: Multiple dex files define Landroid/support/v8/renderscript/Allocation$1;
> at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
> at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
> at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
> at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
> at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
> at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
> at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
> at com.android.dx.command.dexer.Main.run(Main.java:246)
> at com.android.dx.command.dexer.Main.main(Main.java:215)
> at com.android.dx.command.Main.main(Main.java:106)

Once the line compile project(':StackBlur') is removed from the build.gradle the project works just fine. Any idea why this is happening?

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the app's build.gradle and the compile project(':StackBlur') dependency, then reproduce the :app:dexDebug failure. Trace which dependency supplies android/support/v8/renderscript/Allocation and confirm the duplicate class source. Done means the project can include StackBlur and build successfully without the duplicated renderscript error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.