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.

Unable to launch app: unknown flag --nolaunch_app

See original GitHub issue

When 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
memostarkcommented, Dec 16, 2020

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

ERROR: Skipping '-nolaunch_app': couldn't determine target from filename '-nolaunch_app'
ERROR: couldn't determine target from filename '-nolaunch_app'
0reactions
TylerCarberrycommented, Sep 9, 2022
Read more comments on GitHub >

github_iconTop 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 >

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