我正在尝试用这个模块编译 godot:admob
https://github.com/kloder-games/godot-admob
但是我编译时出现这个错误:
scons platform=android target=release android_arch=arm64v8
scons: Reading SConscript files ...
Building for Android (arm64v8)
WARNING: android_arch=arm64v8 is not supported by ndk_platform lower than android-21; setting ndk_platform=android-21
Using NDK unified headers
Warning: module 'admob' uses a deprecated `can_build` signature in its config.py file, it should be `can_build(env, platform)`.
AttributeError: 'SConsEnvironment' object has no attribute 'android_add_dependency':
File "D:\Backup\Download\godot-master\godot-master\SConstruct", line 403:
config.configure(env)
File "./modules/admob\config.py", line 6:
env.android_add_dependency("compile ('com.google.android.gms:play-services-ads:16.0.0') { exclude group: 'com.android.support' }")
Run Code Online (Sandbox Code Playgroud)
什么是?
就在两个小时前,我启动了这段代码:
python -c "import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)" < input.yaml > output.json
Run Code Online (Sandbox Code Playgroud)
我有一个 450 MB 的 YAML 文件,在我使用 2 MB 的 YAML 测试文件来测试代码(在互联网上找到的代码)之前,这种转换浪费的时间真的令人难以置信(实际上仍在转换)。我收到了一个 9 MB 的转换后的 JSON 文件。这对我来说真的很奇怪(JSON 需要更多空间),但奇怪的是 python 打开 2 MB YAML 文件比打开 9 MB 的 JSON 文件浪费更多的时间。JSON 文件会立即打开,而 YAML 文件需要 2 分钟。有人可以解释这些事情吗?python、JSON 和 YAML 解析器背后的魔法在哪里?