react-native-quick-crypto icon indicating copy to clipboard operation
react-native-quick-crypto copied to clipboard

Android build issue with RN 0.72.3

Open DavideSegullo opened this issue 1 year ago • 13 comments

Hello, I have some problems compiling android with RN 0.72.3 and expo 49.0.3.

Does anyone have the same error? Maybe it is related to upgrade to gradle 8?

image

DavideSegullo avatar Jul 24 '23 15:07 DavideSegullo

I think I am having the same issue

ruahman avatar Jul 25 '23 16:07 ruahman

I have the same issue and there was no problem a month ago. Whether it is related to the expo or RN framework version

Vvaraz avatar Jul 27 '23 03:07 Vvaraz

I tried using Expo ~48.0.18 and React Native 0.71.8, and now it works fine.

Vvaraz avatar Jul 27 '23 04:07 Vvaraz

I tried using Expo ~48.0.18 and React Native 0.71.8, and now it works fine.

Yes it's related to expo 49 and react native 0.72.3

DavideSegullo avatar Jul 27 '23 13:07 DavideSegullo

same here

krisgrm avatar Jul 29 '23 18:07 krisgrm

same here(

Alex-ensuria avatar Aug 01 '23 21:08 Alex-ensuria

I found a solution, inside android/app/build.gradle just add this:

android {
...
packagingOptions {
        pickFirst 'lib/x86/libcrypto.so'
        pickFirst 'lib/x86_64/libcrypto.so'
        pickFirst 'lib/armeabi-v7a/libcrypto.so'
        pickFirst 'lib/arm64-v8a/libcrypto.so'
    }
}

Give it a try

DavideSegullo avatar Aug 03 '23 09:08 DavideSegullo

I found a solution, inside android/app/build.gradle just add this:

android {
...
packagingOptions {
        pickFirst 'lib/x86/libcrypto.so'
        pickFirst 'lib/x86_64/libcrypto.so'
        pickFirst 'lib/armeabi-v7a/libcrypto.so'
        pickFirst 'lib/arm64-v8a/libcrypto.so'
    }
}

Give it a try

I think you need to add this into documentation, your solution is work for me, thanks

kriptonhaz avatar Aug 03 '23 13:08 kriptonhaz

I found a solution, inside android/app/build.gradle just add this:

android {
...
packagingOptions {
        pickFirst 'lib/x86/libcrypto.so'
        pickFirst 'lib/x86_64/libcrypto.so'
        pickFirst 'lib/armeabi-v7a/libcrypto.so'
        pickFirst 'lib/arm64-v8a/libcrypto.so'
    }
}

Give it a try

I think you need to add this into documentation, your solution is work for me, thanks

I'll open a PR

DavideSegullo avatar Aug 03 '23 14:08 DavideSegullo

it seems like you found a solution, thanks for reporting this issue :)

Montchy avatar Aug 14 '23 09:08 Montchy

@Montchy I believe the issues they are facing are legit, and we actually need to fix the library code.
I will reopen this issue for further investigation.

Could you @DavideSegullo please provide a minimal reproduction? That would help with fixing this issue as fast as possible 😊

hannojg avatar Aug 14 '23 13:08 hannojg

@Montchy I believe the issues they are facing are legit, and we actually need to fix the library code. I will reopen this issue for further investigation.

Could you @DavideSegullo please provide a minimal reproduction? That would help with fixing this issue as fast as possible 😊

Hi @hannojg thank you for your reply, you can find it here.

Just run:

pnpm android

DavideSegullo avatar Aug 14 '23 15:08 DavideSegullo

@DavideSegullo, yeah sorry my mistake, thanks for noticing :)

Montchy avatar Aug 16 '23 09:08 Montchy

The example app is working fine at RN 0.72.7. If 0.7.0-rc.X release candidates of this library do not solve this problem, please reopen this issue.

boorad avatar May 12 '24 13:05 boorad