【问题标题】:Jenkins: You have not accepted the license agreements of the following SDK componentsJenkins:您尚未接受以下 SDK 组件的许可协议
【发布时间】:2018-04-30 17:43:24
【问题描述】:

我已下载 adt-bundle-windows-x86_64-20130219 并在 Android SDK 根目录中应用 $ANDROID_HOME/sdk 在 Jenkins 的配置系统中。

我的错误是:

 * What went wrong:
 A problem occurred configuring project ':app'.
 > You have not accepted the license agreements of the following SDK 
 components:
 [Android SDK Build-Tools 25.0.2, Android SDK Platform 25].
 Before building your project, you need to accept the license agreements and 
 complete the installation of the missing components using the Android 
 Studio SDK Manager.
 Alternatively, to learn how to transfer the license agreements from one 
 workstation to another, go to http://d.android.com/r/studio-ui/export-
 licenses.html

我看过很多教程,我需要在 $ANDROID_HOME/tools/bin 运行 ./sdkmanager --licenses 。但真正的问题是我的广告捆绑包中没有 BIN。这是我的目录:C:\Users\user\Desktop\Gradle\adt-bundle-windows-x86_64-20130219\sdk\tools。 bin 文件夹丢失,我没有。我是否下载了错误的 sdk 工具?我还运行 SDK 管理器,不幸的是工具中缺少 bin 文件夹。

詹金斯工作中的其他信息: 我只是调用 gradle 脚本并添加任务:packageDebug

【问题讨论】:

    标签: android gradle sdk android-sdk-tools gradlew


    【解决方案1】:

    解决了。

    步骤:

    1. 在android studio官网下载sdk工具
    2. 创建一个文件夹,然后将 sdk 提取到该文件夹​​中
    3. 进入 tools/bin 目录
    4. 转到该目录中的 CMD,然后键入 ./sdkmanager.bat --licenses
    5. 每次他们要求您提供许可证时,只需按 y

    【讨论】:

      猜你喜欢
      • 2017-02-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-03
      • 2017-03-16
      • 1970-01-01
      相关资源
      最近更新 更多