首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >以下Android SDK包安装失败,部分licences未被接受。平台29

以下Android SDK包安装失败,部分licences未被接受。平台29
EN

Stack Overflow用户
提问于 2021-03-19 03:46:23
回答 2查看 147关注 0票数 0

我有这个错误,但接受sdk许可协议

代码语言:javascript
复制
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;29.0.2 Android SDK Build-Tools 29.0.2
     platforms;android-29 Android SDK Platform 29
  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: /usr/lib/android-sdk

我有两个android-sdk

一个位于/usr/lib/android-sdk,另一个位于home/bug/Android/Sdk

代码语言:javascript
复制
 yes | $ANDROID_SDK_ROOT/tools/bin/sdkmanager "build-tools;29.0.2"
Warning: File /home/bug/.android/repositories.cfg could not be loaded.          
[=======================================] 100% Computing updates...

使用这个命令,我在home/bug/Android中接受

但是如何接受/usr/lib/android-sdk中的许可证呢?

EN

Stack Overflow用户

发布于 2021-03-19 03:53:16

您可以使用

代码语言:javascript
复制
yes |  /usr/lib/android-sdk/tools/bin/sdkmanager --licenses

我不确定,但您可能还需要创建repositories.cfg文件:

代码语言:javascript
复制
mkdir ~/.android
echo "count=0" > ~/.android/repositories.cfg
票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66698099

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档