tldr: You also need to compile AppCompat resources since you're building all of this by hand, and pass them to link the same way you do with your local resources (the order matters to keep the correct overlays/overrides).

The way the Android Gradle Plugin handles resources in an app level is:

  • merge all the resources (local app, local libraries, remote libraries, extra resource source-sets etc)
  • compile everything using 'aapt2 compile' (with or without PNG crunching)
  • link everything into an APK
Answer from Izabela Orlowska on Stack Overflow
🌐
GitHub
github.com › react-native-community › docker-android › issues › 75
Latest image missing bundler · Issue #75 · react-native-community/docker-android
May 22, 2020 - Builds error out on bundle: command not found. I was able to confirm that rolling back to a fixed version: reactnativecommunity/react-native-android:2020-4-1 resolves the issue for me.
Published   May 22, 2020
Author   SRandazzo
Discussions

Bundle tool "install apks" command isn't working sometimes.
Describe the bug Bundle tool install apks command isn't working bundletool install-apks --apks=my_app.apks on Nexus 6P device (Android Oreo) sometimes. Although it doesn't give any problem ... More on github.com
🌐 github.com
11
May 22, 2018
Unable to generate APKs using bundletool in Android Studio - Stack Overflow
As mentioned in Bundletool Documentation I'm giving following command on Android Studio terminal: bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks I'm getting following More on stackoverflow.com
🌐 stackoverflow.com
bundletool build-apks `--connected-device` or `--device-spec` flag/parameter are not working
Describe the bug I've referred ... device from the app bundle during testing phase. I'm trying to run the following command which should generate the apk set for connected device or as per the device-specs. These both commands are not working and giving me the following ... More on github.com
🌐 github.com
14
May 21, 2018
Bundletool install-apks command only installs partial set of APKs if device-spec.json does not match device spec.
I checked in base-ldpi.apk to look after the resource not found, it is well present in the apk. I created another sample project with the same base configuration (AndroidX, api 17 to 28...) to reproduce this behavior : Sample project It includes the project, an appbundle file and the specs.json file ... java -jar bundletool... More on github.com
🌐 github.com
4
March 15, 2019
🌐
GitHub
github.com › google › bundletool › issues › 8
Bundle tool "install apks" command isn't working · Issue #8 · google/bundletool
May 21, 2018 - Describe the bug Bundle tool install apks command isn't working bundletool install-apks --apks=my_app.apks Bundletool version(s) affected Version: [e.g. 0.3.3] Stacktrace 11:03:02 E/SplitApkInstaller: Failed to finalize session : INSTALL...
Published   May 21, 2018
Author   saurabhkpatel
🌐
GitHub
github.com › google › bundletool
GitHub - google/bundletool: Bundletool is a command-line tool to manipulate Android App Bundles · GitHub
Bundletool is a command-line tool to manipulate Android App Bundles - google/bundletool
Starred by 4K users
Forked by 420 users
Languages   Java
🌐
GitHub
github.com › google › bundletool › issues › 10
Bundle tool "install apks" command isn't working sometimes. · Issue #10 · google/bundletool
May 22, 2018 - Describe the bug Bundle tool install apks command isn't working bundletool install-apks --apks=my_app.apks on Nexus 6P device (Android Oreo) sometimes. Although it doesn't give any problem for Google Pixel 2 XL. I tried to run the follow...
Published   May 22, 2018
🌐
GitHub
github.com › google › bundletool › issues › 9
bundletool build-apks `--connected-device` or `--device-spec` flag/parameter are not working · Issue #9 · google/bundletool
May 21, 2018 - $ bundletool build-apks --bundle=app/build/outputs/bundle/debug/bundle.aab --output=my_app.apks --device-spec=pixel2.json · WARNING: The APKs won't be signed and thus not installable unless you also pass a keystore via the flag --ks. See the command help for more information. [BT:0.3.3] Error: Unrecognized flags: --device-spec com.android.tools.build.bundletool.utils.flags.ParsedFlags$UnknownFlagsException: Unrecognized flags: --device-spec at com.android.tools.build.bundletool.utils.flags.ParsedFlags.checkNoUnknownFlags(ParsedFlags.java:90) at com.android.tools.build.bundletool.commands.Buil
Published   May 21, 2018
Author   saurabhkpatel
Find elsewhere
🌐
GitHub
github.com › google › bundletool › issues › 57
Bundletool install-apks command only installs partial set of APKs if device-spec.json does not match device spec. · Issue #57 · google/bundletool
March 15, 2019 - I checked in base-ldpi.apk to look after the resource not found, it is well present in the apk. I created another sample project with the same base configuration (AndroidX, api 17 to 28...) to reproduce this behavior : Sample project It includes the project, an appbundle file and the specs.json file ... java -jar bundletool-all-0.9.0.jar build-apks --device-spec=specs.json --bundle=app.aab --output=testapk.apks
Author   Toubap
🌐
CircleCI
discuss.circleci.com › build environment › mobile
After CircleCI went down yesterday, bundle install is now broken on iOS and Android - Mobile - CircleCI Discuss
January 24, 2021 - Hi all, We’ve been submitting builds to TestFlight and Google Play just fine up until the scheduled maintenance yesterday. When CircleCI came back online, I tried to push a new build and both iOS & Android are failing at the Build IPA or APK part. Android fail error: bundler: command not found: fastlane Install missing gem executables with bundle install iOS fail error: Could not find rake-12.3.3 in any of the sources Run bundle install to install missing gems.
🌐
CircleCI
discuss.circleci.com › build environment
Bundler: command not found - Build Environment - CircleCI Discuss
May 8, 2018 - using circleci/android:api-27-node8-alpha I have a run: bundler install which gives bundler: command not found. But if I SSH into the machine I can run bundler install (in the project folder) and it works as expected. a…
🌐
Reddit
reddit.com › r/reactnative › "react-native bundle" throws error but "yarn react-native bundle" not. need info to generate a release apk
r/reactnative on Reddit: "react-native bundle" throws error but "yarn react-native bundle" not. Need info to generate a release apk
April 19, 2023 -

Hi

I'm having a strange behaviour when trying to generate a release apk for my App

I'm using latest RN, latest NativeBase UI Library, etc.

When executing

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

I get some errors related to "react-native-svg", which I've reported here

https://github.com/software-mansion/react-native-svg/issues/2029

But yesterday (searching for help about that bug) I've found that I could generate an apk using Yarn. So decided to give it a try and executed the following command

yarn react-native bundle --reset-cache --entry-file index.js --platform android --bundle-output test.bundle --dev false

For my surprise, the above command executed successfuly and an apk (debug) was generated in

./android/app/build/outputs/apk/debug/app-debug.apk

Command output:

info Writing bundle output to:, test.bundle
info Done writing bundle output
warn Assets destination folder is not set, skipping...
Done in 27.47s.

Questions:

  1. Does anyone know why this behaviour between the 2 commands? Is any of those malformed?

  2. Can anyone point me to a yarn command that can generate a release apk and not debug ?

Thanks

🌐
LogRocket
blog.logrocket.com › home › addressing common errors in react native
Addressing common errors in React Native - LogRocket Blog
June 4, 2024 - Follow the instructions below to fix it. ... Go into {your-project-folder}/android/app/src/main/ folder and check if an assets folder exists within it. If the assets folder isn’t already there, create it.
🌐
Homebrew
formulae.brew.sh › formula › bundletool
bundletool — Homebrew Formulae
brew install bundletool · Command-line tool to manipulate Android App Bundles · https://github.com/google/bundletool · License: Apache-2.0 · Development: Pull requests · Formula JSON API: /api/formula/bundletool.json · Formula code: bundletool.rb on GitHub ·
🌐
GitHub
github.com › javan › whenever › issues › 473
bundle: command not found · Issue #473 · javan/whenever
July 2, 2014 - env :PATH, ENV['PATH'] env :GEM_PATH, ENV['GEM_PATH'] I found a lot of issues solved environment problem like bundle: command not found using the solutions above. I don't know w...
Author   tonytonyjan
🌐
GitHub
github.com › github › linguist › issues › 4495
bash: bundle: command not found · Issue #4495 · github-linguist/linguist
April 15, 2019 - Preliminary Steps Please confirm you have... reviewed the Troubleshooting docs, considered implementing an override, verified an issue has not already been logged for your issue (linguist issues). Problem Description bundle exec bin/gith...
Author   drandreaskrueger
🌐
GitHub
github.com › facebook › react-native › issues › 29398
Flavors & App Bundle missing index.android.bundle · Issue #29398 · facebook/react-native
July 16, 2020 - If we run this command : ./gradlew bundleRelease -> it build all variants app-dev-release.aab -> missing app-test-release.aab -> index.android.bundle present app-prod-release.aab -> index.android.bundle present · it seems that the first time not set the index.android.bundle into assets
Author   lorenzoangelini
🌐
Android Developers
developer.android.com › android studio › bundletool
bundletool | Android Studio | Android Developers
March 5, 2026 - Alternatively, if your connected device is running Android 4.4 (API level 20) or lower, bundletool searches for a compatible multi-APK to deploy to your device. To deploy your app from an APK set, use the install-apks command and specify the path of the APK set using the --apks=/path/to/apks flag, as shown in the following command. If you have multiple devices connected, specify a target device by adding the --device-id=serial-id flag. ... Note: If you're using the --local-testing flag with the build-apks command, use install-apks to install your APKs to ensure that local testing works correctly.