gpt4 book ai didi

ANDROID_HOME 没有覆盖 local.properties

转载 作者:行者123 更新时间:2023-11-29 00:27:23 25 4
gpt4 key购买 nike

我的 Android 项目的 git 存储库中有一个 local.properties 文件。在我的构建服务器上,它正在检查 git 并运行 gradle 目标来执行单元测试。构建服务器是 linux,我在 mac 上,所以安装 Android SDK 的地方不同,我可以更改但不想更改。

ANDROID_HOME 是否覆盖 local.properties;无法确定我是否在 Jenkins(构建服务器)中正确设置了环境变量,或者 local.properties 是否优于环境变量。

我一直在阅读的来源是:http://tools.android.com/tech-docs/new-build-system/user-guide

Note: You will also need a local.properties file to set the location of the SDK in the same way that the existing SDK requires, using the sdk.dir property. Alternatively, you can set an environment variable called ANDROID_HOME.

最佳答案

在我见过的大多数工具上,本地配置将覆盖环境变量。

从 Jenkins 的角度来看,使用环境变量很有意义,因为它们可以传播到多个项目。

关于ANDROID_HOME 没有覆盖 local.properties,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18410647/

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