clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

why I install this package android build failed?

Open jetBn opened this issue 4 years ago • 9 comments

Task :app:mergeDebugJavaResource FAILED Task :app:mergeDebugNativeLibs FAILED

jetBn avatar Aug 19 '20 06:08 jetBn

yes same issue

aashu331998 avatar Aug 26 '20 14:08 aashu331998

yes same issue

do you solve it ? I find install other react-native-community package had same problem.

jetBn avatar Aug 27 '20 06:08 jetBn

I got the same problem.

fxbayuanggara avatar Sep 02 '20 01:09 fxbayuanggara

any update on this?

I got multidex merge dex error, can't build after installing

currently resorting to deprecated original RN Clipboard idk how long that will hold tho

EDIT: Adding multiDexEnabled true in defaultConfig { } in app level build.gradle fixed it for me but I read somewhere that that is a workaround and it still means there's someting in the library that's messing with method count? can anyone confirm if this is best practice? Thanks in advance :)

rayj10 avatar Sep 09 '20 06:09 rayj10

I've been facing this problem too! Installing this library causes the android app to crash. I was able to fix the multiDexEnabled error, and the build passes. But the app crashes on open

Billmike avatar Sep 27 '20 11:09 Billmike

This problem is not with the library, but more of android. enabling multidex will solve the problem

chakrihacker avatar Oct 09 '20 14:10 chakrihacker

Had this error Execution failed for task ':app:multiDexListDebug'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Error while merging dex archives: Type com.reactnativecommunity.clipboard.BuildConfig is defined multiple times:

Problem was that npm package name and example code used different versions of libraries (rn-community and rn-clipboard). Solution was removing the community version. Otherwise make sure gradle files are synced and you have cleaned the projects in AS.

mvehar avatar Feb 11 '21 10:02 mvehar

@mvehar comment worked for me. For me a library was using the rn-community/clipboard package so i had to remove the react-native-clipboard/clipboard package

kolanse avatar Jun 18 '21 12:06 kolanse

@mvehar Thanks.worked after uninstall community version of clipboard.

ydv0121 avatar Feb 16 '22 06:02 ydv0121