Buck - name'project_config'未定义。怎么解决?

时间:2017-06-14 18:43:43

标签: android facebook buck

我不知道为什么,但巴克一直都很痛苦。我试图直接从Android的{​​{1}}的Facebook页面进行Getting started教程。问题是当我尝试执行以下命令时出现错误:macOS

错误:

buck build demo_app_android

注意:我克隆了GitHub上的[+] PARSING BUCK FILES...0.4s BUILD FAILED: Parse error for build file /Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/android/BUCK: NameError: name 'project_config' is not defined Call stack: File "/Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/.buckd/resources/v2017.05.31.01/buck_server/buck_parser/buck.py", line 1085, in process_with_diagnostics diagnostics=diagnostics) File "/Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/.buckd/resources/v2017.05.31.01/buck_server/buck_parser/buck.py", line 972, in process os.path.join(self._project_root, path)) File "/Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/.buckd/resources/v2017.05.31.01/buck_server/buck_parser/buck.py", line 966, in _process_build_file return self._process(build_env, path, is_implicit_include=False) File "/Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/.buckd/resources/v2017.05.31.01/buck_server/buck_parser/buck.py", line 926, in _process exec(code, module.__dict__) File "/Users/Antonio/Development/bucksamples/cross-platform-scale-2015-demo/android/BUCK", line 16 project_config( 存储库

这是fbsamples/bucksamples文件:

BUCK

如果定义# Copyright 2015-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. android_binary( name = 'demo-app', manifest = 'AndroidManifest.xml', keystore = '//android/keystores:debug', deps = [ '//android/java/com/facebook/buck/demo:lib', ], ) project_config( src_target = ':demo-app', ) ,为什么会失败?

1 个答案:

答案 0 :(得分:2)

project_config前一段时间被删除了。尝试将其从BUCK文件中删除并再次运行buck build。