-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Failed Build #148
Comments
The way you manually link them should work fine, I wonder why JSI fails to link for you. What react-native version are you on? |
Using expo bare project so still on 63
|
@Hannes1 @mrousavy I've been having build issues with expo bare as well. I was able to get it to build with the following modification to CMakeLists.txt:
I also had to update the flipper version in my expo app to 0.105.0. This builds successfully but when I try to use MMKV I get the following error: [Tue Sep 14 2021 08:00:31.950] ERROR Error: Failed to create a new MMKV instance, the native initializer function does not exist. Is the native MMKV library correctly installed? Make sure to disable any remote debugger (e.g. Chrome) to use JSI! |
+1 Facing the same issue on v1.3.1 in a Expo SDK 42 bare project with Reanimated 2 as other JSI package. |
@kelvinpompey did you install the MMKV JSI package in your |
I also have an Expo bare app (SDK 42) and I'm trying to install Not sure if is the same issue, but I'm having trouble when building for Android with gradle. I think the error message (shown below) says that I have multiple versions of JNI.
I did the Android setup mentioned here (I have Reanimated2 installed) Versions |
Hello, The Android Build is still failing in version 1.3.1. The cause for the build is the cpp-adapter is failing during the android process. Is there anything I am missing or why this is failing? Note in this project I am running with react-native-reanimated v 1.9.0 Error stopping the build : Thank you |
The logs you attached do not contain a build error. |
Sorry, Here is one of the errors that is shown during the android build process UPDATE: This is due to the fact the project we have has the android and ios folders nested inside several directories so it is not reflective of a general react native project. Is there any way to make the linking inside the package more adaptive so it does not depend on a specific react project structure? |
Is that a monorepo? I don't work with those, so I cannot test this - but if you find a way to fix this, shoot me a PR and I'd happily merge it! Similar issue: mrousavy/react-native-vision-camera#340 |
I integrated mmkv today and my build fails (this is not a monorepo). RN 0.65, with reanimated. In debug everything works. This is the CI stacktrace
@mrousavy are you running any tests with the release mode as well? |
@renanmav adding:
to |
Yeah, @mrousavy solution worked out for me
My setup mentioned above is a monorepo with yarn workspaces (similar to this), so I can ensure that it works. |
@mrousavy yes it is a monorepo. I did manage to create a work around in the build.gradle. I will see if i can have a look at how to make it adaptable. |
Hello a little update : It seems that #151 should already solve the issue I see it was merged 6 days ago but it has not been released. Is there any ETA on when this will happen? Thanks |
Oh wow, I completely forgot about that. My bad, been really busy lately - will publish an update now hopefully everything goes smooth! |
1.3.2 published, let me know if it builds for you guys. |
I am also getting this error. Is there a fix yet? |
Please check if v2.0.0 works for you guys, I think I fixed this error :) |
Added
Upgraded to version 2.4.3 and build succeeds, but opening my crashes immediately. This is on react-native 0.68.0.
|
Hi, so I'm getting the following error when building:
The problem is I'm using Reanimated 2 and WatermelonDB that uses jsi
This is how I manually linked them before, will this not work with Mmkv?:
The text was updated successfully, but these errors were encountered: