How can I fix the "expo-av arm64 no compatible library found" issue in a Codemagic build?
Last updated: July 27, 2026
If you're running into the error below:
expo-av arm64 no compatible library foundWhen building a React Native Android app (especially with Expo), most especially when you increase the Java virtual machine heap size to 5 GB because your app requires more RAM than the current build machine provides, and thus it only happens in Codemagic and not locally.
Issue:
The error appears when JAVA_TOOL_OPTIONS is set to a high value like -Xmx5g. Sometimes, this high memory setting causes a conflict and, in turn, causes the build to fail during native module resolution for expo-av, especially on ARM64 macOS and some Linux environments.
Workaround / Solution:
Reduce the allocated heap size to e.g. 3GB i.e., the JAVA_TOOL_OPTIONS. Use:
environment:
vars:
JAVA_TOOL_OPTIONS: "-Xmx3g"Or remove it entirely if your app doesn't require more RAM.
Codemagic also offers more powerful machines with more RAM/CPU power.