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.

[ASWB] Mobile-install run configuration failed

See original GitHub issue

Background Running mobile-install from bazel configuration doesn’t work. This issue is regressed from https://github.com/bazelbuild/intellij/pull/1895/commits/12d8faf1cd404840acc9e2f4c1416dade89a05db

Screenshot from 2021-01-28 17-59-36

Waiting for target device...
Invoking mobile-install...
Command: /home/tchen/01_Projects/android/app/bazelisk mobile-install --tool_tag=ijwb:AndroidStudio "--adb_arg=-s " --adb_arg=801KPSL1432918 --adb /home/tchen/Android/Sdk/platform-tools/adb --device 801KPSL1432918:tcp:5037 --curses=no --color=yes --progress_in_terminal_title=no --build_event_binary_file=/tmp/intellij-bep-7b690874-d9b7-460d-805e-fb6de61ce23e --nobuild_event_binary_file_path_conversion -- //platform/core-ui/samples/playground:playground-apk --nolaunch_app

ANDROID_SDK is not set! This must point to the root directory of the Android SDK
2021/01/28 17:58:52 Using unreleased version 114 from gs://snap-bazel-releases
2021/01/28 17:58:52 Authenticating against GCS using default application credentials
INFO: Invocation ID: 35b58e51-d73a-4b4d-ac93-124359378e14
Loading:  (0 packages loaded)
Loading: 0 packages loaded
ERROR: Skipping '-nolaunch_app': no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /home/tchen/01_Projects/android/app/BUILD.bazel
WARNING: Target pattern parsing failed.
ERROR: no such target '//:-nolaunch_app': target '-nolaunch_app' not declared in package '' defined by /home/tchen/01_Projects/android/app/BUILD.bazel
INFO: Elapsed time: 3.468s (0.06m)
INFO: 0 processes (0.00%).
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)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jlaxsoncommented, May 2, 2022

@kaplad Create an executable file in <workspace root>/tools/bazel with first line #!/bin/bash and remainder the script as above. Then when you run bazel as usual, it will first use that script to modify the command line.

1reaction
jlaxsoncommented, Apr 4, 2022

You can add/merge this to your tools/bazel wrapper to filter out the offending flag:

args=("$@")
for index in "${!args[@]}"; do
  [[ "${args[index]}" == "--nolaunch_app" ]] && unset 'args[index]'
done
exec "$BAZEL_REAL" "${args[@]}"
Read more comments on GitHub >

github_iconTop Results From Across the Web

Association of Social Work Boards
ASWB develops and maintains the social work licensing examinations that are used to test a social worker's competence to practice ethically and safely....
Read more >
ASWB Exam Candidate Handbook
Exam questions are written by item writers who have been selected to reflect racial, ethnic, gender, geographic, and practice-setting diversity. The Examination ...
Read more >
Exam - Association of Social Work Boards
Learn everything you need to know about taking an ASWB social work licensing exam. Download the ASWB Exam Guidebook. Examination registration fees.
Read more >
Getting ready for the exam - Association of Social Work Boards
What to do before the exam. Download the ASWB Exam Guidebook; Apply to your state or provincial board; Register with ASWB; Wait for...
Read more >
ASWB-Examination-Guidebook.pdf
Practitioners in a wide range of practice settings respond to the survey, ... All ASWB examination scores are reported as pass/fail, with the...
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