react native生成APP报错:You have not accepted the license agreements of the following SDK components:
今晚因为这个问题,加班到晚上11点都没搞出来。实在是气愤,幸好回来查找资料,终于找到了罪魁祸首。
一、报错信息
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.> A problem occurred configuring project ':jcore-react-native'.> You have not accepted the license agreements of the following SDK components:
[Android SDK Build-Tools 23.0.2].
Before building your project, you need to accept the license agreements and complete the installation of the mi
ponents using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.
om/r/studio-ui/export-licenses.html* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
就是这串代码。总是说我的license有问题。说我没有接受SDK的一些协议之类的。反正当时百思不得其解。
二、错误原因
从Android Gradle plugin 2.2.0开始,gradle会自动加载需要的SDK, build-tools,但是因为没有接受license,导致加载依赖终止。
三、解决办法
(1)找到自己的android SDK位置,进入Tools/bin目录下
(2)打开cmd,进入上面的目录
(3)输入下面命令
sdkmanager.bat --licenses
(4)输入之后,会跳出来很多东西,我们只需要全部写上y即可
(5)成功提示
四、经过以上步骤之后,大家就可以继续按照自己的需求来操作了。
参考链接:http://blog.csdn.net/xlyrh/article/details/54667633
http://blog.csdn.net/y505772146/article/details/75807622
end
react native生成APP报错:You have not accepted the license agreements of the following SDK components:相关推荐
- React Native 红屏报错 Unable to load script from assets
出现上面的报错,先确认rn服务是否运行成功 有的情况下是启动失败,或是启动后意外关闭了,或是端口不一致. 这里记录一下另外一种情况: 如果是从GITHUB上面新CLONE下来的项目 ,可能 andro ...
- react native的WebView报错: Unable to open URL:****
在使用webview的时候,报错 ,后来打开源码发现 当运行到490行openURL时,由于url是已storemanager:开头,所以会报错,解决办法,可以在linking.openurl是加判断 ...
- react native 渐变 BVLinearGradient报错不存在
想实现RN的渐变效果, yarn add react-native-linear-gradientreact-native link react-native-linear-gradient 但是报错 ...
- React Native 自定义组件报错 has no propType for native prop
在使用自定义UI组件时,定义JS组件报如下错误 has no propType for native prop.If you haven't changed this prop yourself,th ...
- react设置static defaultProps报错问题解决
今天做个简单的demo,老是报static defaultProps语法错误,代码如下 import React,{Component} from 'react'; import ReactDOM f ...
- react脚手架创建项目报错,ReactDOM.render is no longer supported in React 18.
react脚手架创建项目报错,ReactDOM.render is no longer supported in React 18. 最近新写一个react的项目,但是发现已经更新到了18.0的版本, ...
- 使用 Agora SDK 开发 React Native 视频通话 App
在 React Native 的应用中,从头开始添加视频通话功能是很复杂的.要保证低延迟.负载平衡,还要注意管理用户事件状态,非常繁琐.除此之外,还必须保证跨平台的兼容性. 当然有个简单的方法可以做到 ...
- Vivado设计DDR3接口生成bit报错解决
1.1 Vivado设计DDR3接口生成bit报错解决 1.1.1 本节目录 1)本节目录: 2)本节引言: 3)FPGA简介: 4)Vivado设计DDR3接口生成bit报错解决: 5)结束语. 1 ...
- android app报错log,Android studio 解决logcat无过滤工具栏的操作
在logcat标题栏右键先windows mode,这时多数能恢复过滤工具栏,要恢复之前的停靠样式再同样点右键去掉windows mode的勾即可 补充知识:Android studio底部Logca ...
最新文章
- linux下php连接mysql数据库_Linux下PHP连接Oracle数据库
- 解密首批人工智能国家队 BAT都在【附下载】
- C# 获取wave文件信息【转】
- SparkJavaAPI:join的使用
- λ表达式_Java 8新特性:学习如何使用Lambda表达式,一看必懂
- 信息收集——Office钓鱼
- 大创中期报告怎么写_课题研究中期报告怎么写?这篇范文很说的很详细
- 瑞德西韦有效吗?专家一句大实话解释清楚了
- java 可重入锁 clh_Java可重入锁原理
- Atitit.软件开发的几大规则,法则,与原则Principle v3
- 暗影精灵4 i5-8300H 核显驱动完美触控板声音亮度调节电池电量显示黑苹果EFI引导
- Mac怎么创建加密文件夹
- 计算机桌面视频录制,电脑上怎么录制屏幕上的视频?
- 两台 Linux 主机之间配置信任关系(以及如何解除)
- 实验室常见的PFA制品有哪些?这些特氟龙PFA产品你认得全吗?
- win10系统安装mscomm32.ocx控件
- wifi频谱仪测试软件,使用频谱仪测试2.4G信号的测试方法,求助
- 软件企业双软认证的条件和好处是什么
- python实训小队项目总结
- cib.xml for 2resource1group4score