【问题标题】:jenkins can not find android SDK詹金斯找不到android SDK
【发布时间】:2017-06-07 03:06:05
【问题描述】:

我尝试使用 jenkins 构建一个 HelloWorld Android 项目,但失败了。

错误信息:

* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory '/home/xxxx/Android/Sdk' does not exist.

但我确定 SDK 目录存在,因为我可以在命令行中成功构建它。

我尝试过的:

  1. 在 jenkins 中设置 ANDROID_HOME 并删除项目 local.properties

    • 构建 jenkins 失败,找不到 sdk
    • build in 命令失败,找不到 sdk
  2. 添加项目local.properties

    • 构建 jenkins 失败,找不到 sdk
    • 构建命令成功

已修复 see this link

原因

jenkins 没有权限访问用户 (xxxx) 主文件夹。

然后我运行chmod 777 /home/xxxx,它现在可以工作了。

【问题讨论】:

    标签: jenkins


    【解决方案1】:

    我解决了这个问题。

    see this link

    原因

    jenkins 没有权限访问用户 (xxxx) 主文件夹。

    然后我运行chmod 777 /home/xxxx,它现在可以工作了。

    【讨论】:

      猜你喜欢
      • 2012-09-30
      • 2014-07-24
      • 2018-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-24
      相关资源
      最近更新 更多