react-native: Android builds do not install on device

Description

There is a lot of “surface area” for the problem here, but I’m getting the following issue after upgrading from 0.66.4 to 0.67.2 with the apk built by appcenter:

2022-02-07 18:05:08.382 1175-1763/? E/NativeLibraryHelper: Library 'libmapbufferjni.so' is not page-aligned - will not be able to open it directly from apk.
2022-02-07 18:05:08.383 1175-1763/? W/NativeHelper: Failure copying native libraries [errorCode=-2]
2022-02-07 18:05:08.383 1175-1763/? E/PackageInstallerSession: Commit of session 1899979103 failed: Failed to extract native libraries, res=-2

I am able to build and run on device locally, but this also used to work just fine in appcenter. Let the queries begin!

Version

0.67.2

Output of npx react-native info

System: OS: macOS 12.1 CPU: (10) arm64 Apple M1 Pro Memory: 116.30 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node Yarn: 1.22.17 - ~/.nvm/versions/node/v14.18.1/bin/yarn npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm Watchman: 2022.01.31.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: API Levels: 29, 30, 31 Build Tools: 30.0.2, 30.0.3, 31.0.0 System Images: android-31 | Google APIs ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8092744 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: 11.0.13 - /Users/memetral/.sdkman/candidates/java/current/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

So many things are non-standard - monorepo, typescript, appcenter… I have a diff of “works-vs-doesn’t-work” that I am slowly bisecting and will update this issue with results.

Snack, code example, screenshot, or link to a repository

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Thanks for all this. I’ll try and patch the package locally to see if I can get a build through, just wanted to make sure I wasn’t going down a dark alley.