florent37 / ShapeOfView

Give a custom shape to any android view, Material Design 2 ready
Apache License 2.0
3.12k stars 400 forks source link

library not working with compileSdkVersion 28 #40

Open meloveself94 opened 5 years ago

meloveself94 commented 5 years ago

I get a Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.

java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex everytime i try to run my project with the latest implementation 'com.github.florent37:shapeofview:1.4.2'.. Running with stacktrace shows me this error : Error:com.android.dex.DexException: Multiple dex files define Landroid/support/v4/os/ResultReceiver; I've tried deleting the .gradle/caches folder.. invalidate caches and restart.. clean & rebuild project but i'm still unable to get this library working with compilesdkversion 28.. compilesdkversion 27 gives me fontvariationsettings ttcindex not found error as well.. i've included multiDexEnabled true and also implementation 'com.android.support:multidex:1.0.3' in my gradle

florent37 commented 5 years ago

are you using androidX ?

shubhexioms commented 5 years ago

Yes

Serbitar45 commented 5 years ago

Hi Also having issues with getting shapeofview to work in sdk28, using Androidx

no transformations happen in preview and then when trying to build it for emulator get errors like: error: attribute shape_diagonal_angle (aka com.samuelpuchala.corvus:shape_diagonal_angle) not found There is a bunch of these for every attribute related to shapeof view

I tried it on a new project which I set up in sdk27 no androidx - all the same dependencies and code - works perfectly in preview but shows the same errors on build.

Any help would be greatly appreciated!!! Thank you. Looking forward to using this in my apps!

rgodlontonshaw commented 4 years ago

It's also not working my side on SDK 28.