You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to run bazel mobile-install for an android_binary target. The app is the simple hello world app generated by the single activity app base in Android Studio.
This is the incorrect output I'm seeing:
$ bazel mobile-install //app/src:app_binary --start_app --incremental
INFO: Analyzed target //app/src:app_binary (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /Users/jeremymuhia/development/mono/android/app/src/BUILD:5:15: Installing //app/src:app_binary incrementally failed (Exit 1): incremental_install failed: error executing command bazel-out/darwin-py2-opt-exec-2B5CBBC6/bin/external/bazel_tools/tools/android/incremental_install --output_marker bazel-out/darwin-fastbuild/bin/app/src/app_binary_files/incremental_deploy_marker ... (remaining 10 argument(s) skipped)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_jeremymuhia/f9dfbeb00953a93e3d2ab5498ee6f23d/execroot/__main__/bazel-out/darwin-py2-opt-exec-2B5CBBC6/bin/external/bazel_tools/tools/android/incremental_install.runfiles/bazel_tools/tools/android/incremental_install.py", line 25, in <module>
from concurrent import futures
ImportError: No module named concurrent
Target //app/src:app_binary failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.270s, Critical Path: 0.11s
INFO: 3 processes: 3 internal.
FAILED: Build did NOT complete successfully
This seems peculiar because when I build an apk with bazel build //app/src:app_binary and install it manually with adb install bazel-bin/app/src/app_binary.apk, I can see that the app is installed on the device and is without any runtime errors.
The text was updated successfully, but these errors were encountered:
veganafro
changed the title
The mobile-install flag is failing on a python import error
mobile-install is failing on a python import error
Dec 12, 2020
rules_android version
0.1.1
Bazel version
Operating system and processor architecture
x86_64-apple-darwin19
Problem description
I'm attempting to run
bazel mobile-install
for anandroid_binary
target. The app is the simple hello world app generated by the single activity app base in Android Studio.This is the incorrect output I'm seeing:
This seems peculiar because when I build an apk with
bazel build //app/src:app_binary
and install it manually withadb install bazel-bin/app/src/app_binary.apk
, I can see that the app is installed on the device and is without any runtime errors.The text was updated successfully, but these errors were encountered: