Skip to content

Bug: [V4 Beta] Build failed on Android with Expo #881

Description

@leoboyerbx

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

  1. 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
  1. install dependencies
bun i
  1. Prebuild
bunx expo prebuild -p android
  1. You can verify that the android/gradle.properties includes the correct reactNativeArchitectures=arm64-v8a,x86_64 (around line 30)
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions