zoukankan      html  css  js  c++  java
  • Failed to install the following Android SDK packages as some licences have not been accepted.

    File /Users/jp/.android/repositories.cfg could not be loaded.
    Checking the license for package Android SDK Build-Tools 28.0.3 in /Users/jp/work/software/android-sdk-linux/licenses
    Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    A problem occurred configuring project ':app'.
    > Failed to install the following Android SDK packages as some licences have not been accepted.
         build-tools;28.0.3 Android SDK Build-Tools 28.0.3
      To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
      Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
      
      Using Android SDK: /Users/jp/work/software/android-sdk-linux
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/6.0/userguide/command_line_interface.html#sec:command_line_warnings
    
    BUILD FAILED in 1m 7s
    

      提示就是没有SDK 证书,需要进入 sdk/tools/bin 目录

      执行 ./sdkmanager --licenses

      如果提示 “Error: Unknown argument --licenses”,说明你的 sdkmanager --licenses 版本太低,需要先升级

            执行 ./sdkmanager --update

  • 相关阅读:
    2017-5-25 母版页
    2017-5-25 分页加条件查询合体
    2017-5-23 WebForm 中的分页功能和条件查询功能
    2017-5-17 WebForm 基础
    2017-5-14 心情
    2017-5-10 小型人员管理系统
    2017-5-9 打开唯一窗体的实例操作
    2017-5-8 TreeView 实现三级联动 (递归方法)
    2017-5-7 三级联动数据库 数据保存
    2017-5-7 三级联动
  • 原文地址:https://www.cnblogs.com/peng-lan/p/11989711.html
Copyright © 2011-2022 走看看