-
-
Notifications
You must be signed in to change notification settings - Fork 310
Closed
Description
Bug description
When trying to build an Expo app for android with latest beta (beta.8), even with a correct expo plugin (see #880), we get a build error. It seems that some step is trying to build for armeabi-v7a even if we removed the wrong arch from gradle.properties
.
The error:
> Task :react-native-mmkv:configureCMakeDebug[armeabi-v7a] FAILED
C/C++: [PROJECT]/node_modules/react-native-mmkv/android/CMakeLists.txt debug|armeabi-v7a : com.google.prefab.api.NoMatchingLibraryException: No compatible library found for //mmkv/mmkv. Rejected the following libraries:
[Incubating] Problems report is available at: [PROJECT]/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-mmkv:configureCMakeDebug[armeabi-v7a]'.
> [CXX1210] [PROJECT]/node_modules/react-native-mmkv/android/CMakeLists.txt debug|armeabi-v7a : No compatible library found [//mmkv/mmkv]
How to reproduce ?
I've made a repro repo from a fresh Expo 54 Beta template: repo
Steps to reproduce
- Clone the repro repo and checkout the correct branch
git clone https://github.com/leoboyerbx/rn-repros && cd rn-repros && git checkout issue/android-arch-error
- install dependencies
bun i
- Prebuild
bunx expo prebuild -p android
- You can verify that the
android/gradle.properties
includes the correctreactNativeArchitectures=arm64-v8a,x86_64
(around line 30) - Try to run on a real device
bun run android --device
The error should show up.
Note: setting up a local environment that can build Android locally is needed to use the repro
MikeKovarik and roni-castro-shipt
Metadata
Metadata
Assignees
Labels
No labels