react-native-mmkv: Android Studio Build Failed.
Hello I am getting this error when I try to build in Android Studio.
Error while executing process E:\AndroidStudioSDK\cmake\3.10.2.4988404\bin\ninja.exe with arguments {-C C:\Users\The Clone Trooper\Desktop\MyApp\Git\node_modules\react-native-mmkv\android\.cxx\cmake\debug\armeabi-v7a reactnativemmkv}
ninja: Entering directory `C:\Users\The Clone Trooper\Desktop\MyApp\Git\node_modules\react-native-mmkv\android\.cxx\cmake\debug\armeabi-v7a'
ninja: error: '../../../../build/react-native-0.63.4.aar/jni/armeabi-v7a/libreactnativejni.so', needed by '../../../../build/intermediates/cmake/debug/obj/armeabi-v7a/libreactnativemmkv.so', missing and no known rule to make it
I have tried adding
packagingOptions {
pickFirst '**/*.so'
if (!enableHermes) {
exclude "**/libhermes*.so"
}
}
to my app/build.gradle but it still fails.
I am on an expo ejected app with expo 42.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
hope this might help
https://stackoverflow.com/a/69723157/11816387
@wodin It shouldn’t require RN 0.64. But I don’t have an RN 63 app to test