gpt4 book ai didi

Android BUCK 构建错误

转载 作者:行者123 更新时间:2023-11-30 00:20:51 24 4
gpt4 key购买 nike

尝试按照这些说明 (https://buckbuild.com/setup/getting_started.html) 构建 buck 示例项目时,我收到以下错误。

BUILD FAILED: No native platforms detected. Probably Android NDK is not configured properly.

在 ~/.profile 中设置存储库

export ANDROID_NDK_REPOSITORY=/Users/tm/Library/Android/sdk/ndk-bundle

版本根据ndk-bundle目录下的source.properties文件。

Pkg.Revision = 15.2.4203891

.buckconfig 文件中的 NDK 设置

[ndk]
ndk_version = 15.2.4203891

最佳答案

您需要确保在运行 buck 命令时环境包含 ANDROID_NDK_REPOSITORY 变量:

echo $ANDROID_NDK_REPOSITORY

另外,/Users/tm/Library/Android/sdk/ndk-bundle 目录应该包含一个包含 NDK v15 的子目录 android-ndk-r15,这样,例如,source.properties 的位置是:/Users/tm/Library/Android/sdk/ndk-bundle/android-ndk-r15/source.properties

关于Android BUCK 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46308442/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com