IllegalStateException: android_binary attribute $zip is not defined

14 views
Skip to first unread message

Tim Gleason

unread,
Nov 14, 2015, 4:35:12 PM11/14/15
to bazel-discuss
I'm trying to build (my first) android_binary with bazel.  I downloaded the latest android_sdk and configured it in my workspace.  When I try to build my app, I get:

java.lang.RuntimeException: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://java/tmg/android/apps/meals:meals 80f43cae069bcf080b6ecb9b1231f3ec' (requested by nodes )

  at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:846) 

  at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$2.run(AbstractQueueVisitor.java:439)

  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

  at java.lang.Thread.run(Thread.java:745)

Caused by: java.lang.IllegalStateException: android_binary attribute $zip is not defined

  at com.google.devtools.build.lib.analysis.RuleContext.getExecutablePrerequisite(RuleContext.java:716)

  at com.google.devtools.build.lib.rules.android.AndroidBinary.createCleanDexZipAction(AndroidBinary.java:999)

  at com.google.devtools.build.lib.rules.android.AndroidBinary.dex(AndroidBinary.java:986)

  at com.google.devtools.build.lib.rules.android.AndroidBinary.createAndroidBinary(AndroidBinary.java:331)

  at com.google.devtools.build.lib.rules.android.AndroidBinary.init(AndroidBinary.java:277) 

  at com.google.devtools.build.lib.rules.android.AndroidBinary.create(AndroidBinary.java:100)

  at com.google.devtools.build.lib.rules.android.AndroidBinary.create(AndroidBinary.java:76)

  at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:250)

  at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:168)

  at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:479)

  at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:740)

  at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:199)

  at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:810)


My guess is that it is expecting me to have configured a zip binary *somewhere* ?  (I do have zip installed on on my PATH.)  Does something need to be in my WORKSPACE file?


I'm on a Mac and my bazel version is: bazel release 0.1.1-jdk7


Any help would be appreciated!


Thanks,

tim



Reply all
Reply to author
Forward
0 new messages