question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android builds do not install on device

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
djMaxcommented, Feb 9, 2022

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.

0reactions
emanuelboroscommented, Feb 17, 2022

I think he misstyped AGP/RN, I think he wanted to tell Gradle and AGP. with 7.3.3/7.0.4. Other than that I have this issue as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle build successful but no app installed on android device
You will have to go into developer mode of the phone. Go to Settings -> About Phone -> look for Build Version. Tap...
Read more >
How To Download & Install Android Builds on Your Device?
Downloading the APK build · open the workspace homepage and start the test run on your computer. · observe the flow to reach...
Read more >
Android build successful but will not deploy on phone
I'm having a problem with the Build and Run functionality. I am able to successfully build an apk. When the entire process completes, ......
Read more >
Download Android Studio & App Tools - Android Developers
Android Studio can be installed on Microsoft® Windows®, MacOS®, Linux, and Chrome OS. Learn how to install it in a few simple clicks....
Read more >
App Not Installed Android 10 - TestFairy Documentation
It might be that an app with the same package name that has a different signature is already be installed on your device....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found