Skip to content

Instantly share code, notes, and snippets.

@anandwana001
Last active September 2, 2021 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandwana001/b577193aedcf2342eff73ce962b60401 to your computer and use it in GitHub Desktop.
Save anandwana001/b577193aedcf2342eff73ce962b60401 to your computer and use it in GitHub Desktop.
bazel build //:oppia_dev --sandbox_debug
INFO: Analyzed target //:oppia_dev (1 packages loaded, 820 targets configured).
INFO: Found 1 target...
ERROR: /Users/akshaynandwana/Desktop/oppia/oppia-android/BUILD.bazel:93:31: Generating deployable AAB failed: (Exit 1): sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/5/execroot/__main__ && \
exec env - \
TMPDIR=/var/folders/gp/h5bq28910jlb0zynnt11n0kc0000gn/T/ \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/5/sandbox.sb /var/tmp/_bazel_akshaynandwana/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/third_party/android_bundletool build-bundle '--modules=bazel-out/darwin-fastbuild/bin/oppia_dev_module_zip.zip' '--config=bundle_config.pb.json' '--output=bazel-out/darwin-fastbuild/bin/oppia_dev.aab') sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/5/execroot/__main__ && \
exec env - \
TMPDIR=/var/folders/gp/h5bq28910jlb0zynnt11n0kc0000gn/T/ \
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/5/sandbox.sb /var/tmp/_bazel_akshaynandwana/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/third_party/android_bundletool build-bundle '--modules=bazel-out/darwin-fastbuild/bin/oppia_dev_module_zip.zip' '--config=bundle_config.pb.json' '--output=bazel-out/darwin-fastbuild/bin/oppia_dev.aab')
[BT:1.8.0] Error: Module files can be only in pre-defined directories, but found 'play-services-measurement-sdk.properties'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Module files can be only in pre-defined directories, but found 'play-services-measurement-sdk.properties'.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:156)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:81)
at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundleModules$4(ValidatorRunner.java:64)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModules(ValidatorRunner.java:63)
at com.android.tools.build.bundletool.validation.BundleModulesValidator.validate(BundleModulesValidator.java:82)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:231)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:73)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)
Target //:oppia_dev failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11.927s, Critical Path: 3.96s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
@anandwana001
Copy link
Author

ERROR: /Users/akshaynandwana/Desktop/oppia/oppia-android/BUILD.bazel:93:31: Generating deployable AAB failed: (Exit 1): sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/4/execroot/main &&
exec env -
TMPDIR=/var/folders/gp/h5bq28910jlb0zynnt11n0kc0000gn/T/
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/4/sandbox.sb /var/tmp/_bazel_akshaynandwana/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/third_party/android_bundletool build-bundle '--modules=bazel-out/darwin-fastbuild/bin/oppia_dev_module_zip.zip' '--config=bundle_config.pb.json' '--output=bazel-out/darwin-fastbuild/bin/oppia_dev.aab') sandbox-exec failed: error executing command
(cd /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/4/execroot/main &&
exec env -
TMPDIR=/var/folders/gp/h5bq28910jlb0zynnt11n0kc0000gn/T/
/usr/bin/sandbox-exec -f /private/var/tmp/_bazel_akshaynandwana/0e0a7569f455d331a530cc35527abf40/sandbox/darwin-sandbox/4/sandbox.sb /var/tmp/_bazel_akshaynandwana/install/97cf8d40e3de7fca7ef885fa763bde13/process-wrapper '--timeout=0' '--kill_delay=15' bazel-out/host/bin/third_party/android_bundletool build-bundle '--modules=bazel-out/darwin-fastbuild/bin/oppia_dev_module_zip.zip' '--config=bundle_config.pb.json' '--output=bazel-out/darwin-fastbuild/bin/oppia_dev.aab')
[BT:1.8.0] Error: Module files can be only in pre-defined directories, but found 'play-services-measurement-sdk.properties'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Module files can be only in pre-defined directories, but found 'play-services-measurement-sdk.properties'.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:156)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:81)
at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundleModules$4(ValidatorRunner.java:64)
at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:406)
at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModules(ValidatorRunner.java:63)
at com.android.tools.build.bundletool.validation.BundleModulesValidator.validate(BundleModulesValidator.java:82)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:231)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:73)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)
Target //:oppia_dev failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 20.984s, Critical Path: 17.90s
INFO: 3 processes: 2 internal, 1 darwin-sandbox.
FAILED: Build did NOT complete successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment