0

我正在尝试安装 buck,但出现以下错误:

M00972632:~ blah$ brew install --HEAD buck
==> Installing buck from facebook/homebrew-fb
==> Cloning https://github.com/facebook/buck.git
Updating /Library/Caches/Homebrew/buck--git
==> Checking out branch master
==> ant
==> ./bin/buck build buck
Last 15 lines from /Users/blah/Library/Logs/Homebrew/buck/02.buck:
at com.facebook.buck.shell.Genrule$2.addEnvironmentVariables(Genrule.java:303)
at com.facebook.buck.shell.AbstractGenruleStep.getEnvironmentVariables(AbstractGenruleStep.java:67)
at com.facebook.buck.shell.ShellStep.getDescription(ShellStep.java:231)
at com.facebook.buck.step.DefaultStepRunner.runStepForBuildTarget(DefaultStepRunner.java:56)
at com.facebook.buck.rules.CachingBuildEngine.executeCommandsNowThatDepsAreBuilt(CachingBuildEngine.java:958)
at com.facebook.buck.rules.CachingBuildEngine.access$6(CachingBuildEngine.java:941)
at com.facebook.buck.rules.CachingBuildEngine$1.apply(CachingBuildEngine.java:367)
at com.facebook.buck.rules.CachingBuildEngine$1.apply(CachingBuildEngine.java:1)
at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:906)
at com.google.common.util.concurrent.Futures$1$1.run(Futures.java:635)
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)

[-] BUILDING...FINISHED 3.6s

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/facebook/homebrew-fb/issues

我已确保更新和安装 Buck 页面要求的所有内容。提前致谢。

4

1 回答 1

0

正如@k21 在对该问题的评论中所说,问题在于该ANDROID_HOME目录设置为无效目录,因此巴克感到困惑。

于 2015-10-22T22:25:52.697 回答