Unable to launch app: unknown flag --nolaunch_app
See original GitHub issueWhen I try to run the app from the Android Studio UI the flag --nolaunch_app
at the end of the command. That is triggering the following error:
Waiting for target device...
Invoking mobile-install...
Command: /usr/local/bin/bazel mobile-install --tool_tag=ijwb:AndroidStudio --device 94PAY0RKQL:tcp:5037 "--adb_arg=-s " --adb_arg=94PAY0RKQL --adb /Users/jagoba/Library/Android/sdk/platform-tools/adb --curses=no --color=yes --progress_in_terminal_title=no --build_event_binary_file=/var/folders/0p/db4t1g1d2zxgd91vl02ff0fw0000gn/T/intellij-bep-a9ded8a1-4a1a-4aca-95f9-923c12f3b377 --nobuild_event_binary_file_path_conversion -- //example/MyApp/src/main:android --nolaunch_app
Loading:
Loading: 0 packages loaded
ERROR: Skipping '-nolaunch_app': couldn't determine target from filename '-nolaunch_app'
ERROR: couldn't determine target from filename '-nolaunch_app'
INFO: Elapsed time: 0.725s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
INFO: Build Event Protocol files produced successfully.
FAILED: Build did NOT complete successfully (0 packages loaded)
I haven’t found any documentation about that flag in the bazel docs or in Google.
I managed to run the app by disabling the option “Use mobile-install”. But I’m still curious about the --nolaunch_app
flag that is failing.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Xcode 12 Beta Failed to launch app in reasonable time
AppLaunchTimeoutError : Failed to launch app "DemoApp.app" in reasonable time. The app "DemoApp.app" did not launch on "iPhone Xʀ" in 15 seconds.
Read more >node.js - Unable to start docker Container from docker-compose
docker-compose up Building tomcat unknown flag: --iidfile See 'docker build --help'. ERROR: Service 'tomcat' failed to build.
Read more >How I Fixed: unknown flag: -project-name in GitHub Actions
How I Fixed: unknown flag: --project-name in GitHub Actions - Learn more on ... Define and run multi-container applications with Docker.
Read more >Troubleshoot known issues with Android Emulator
If the emulator fails to start, check whether you have adequate free ... application as a trusted application in your antivirus software.
Read more >Unknown flag: --platform when run in pipeline to AWS
Server: ECS. The content in .gitlab.ci.yml: variables: DOCKER_REGISTRY: x. AWS_DEFAULT_REGION: x. APP_NAME: sample-nodejs-app. DOCKER_HOST: tcp ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same problem with Android Studio 4.0.1 on Windows 10, using Bazel 3.7.1, plugin 2020.06.25.0.3. Can build and install apps using the terminal with no problems
Fixed in version v2022.08.24
https://github.com/bazelbuild/intellij/releases/tag/v2022.08.24-stable