下载的android-sdk 提示ou have not accepted the license agreements of the following S

紫气东来_999 2017-10-25 02:58:14


其实已经在目录上有LICENSE目录了
但是在运行 react-native run-android 的时候提示内容: 【之前用旧的adt是能成功的,不知道新的ADT怎么解决这个问题,谢谢】

Warning: License for package Android Support Repository not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-camera'.
> You have not accepted the license agreements of the following SDK components:
[Android Support Repository].
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


最后先谢谢诸位大神。
...全文
722 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
小懒猫xy 2021-04-03
  • 打赏
  • 举报
回复
我按我楼上的操作,成功了,但是运行项目还是提示原来的错误,怎么回事呢?
小懒猫xy 2021-04-03
  • 打赏
  • 举报
回复
我的已经完全接受了,为什么还是显示不接受?
jzp12 2019-08-09
  • 打赏
  • 举报
回复
在cmd命令窗口下,先cd到 ***\Android\android-sdk\tools\bin下

运行
sdkmanager --licenses

一路接受 y 回车就行了
紫气东来_999 2017-12-04
  • 打赏
  • 举报
回复
悲剧,连个接分的都没有,帮顶的都消失了,CSDN怎么了。
紫气东来_999 2017-10-26
  • 打赏
  • 举报
回复
悲剧啊,现在CSDN没人气了么?

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧