ionic开发——编译出错:You have not accepted the license agreements of the following SDK component

来源:互联网 发布:透视的屏幕软件 编辑:程序博客网 时间:2024/06/06 05:05

今天在执行ionic cordova build android --prod的时候,报了下了的错误:

* What went wrong:A problem occurred configuring root project 'Android'.> You have not accepted the license agreements of the following SDK components:[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* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debugoption to get more log output.

这个错误很好解决,主要我们就看我们缺少什么就行了,我们缺少android SDK Platform 25,这里缺少什么我们就下载什么就好了


我们打开android sdk manager.exe后把相应缺少的包(我这里就是Android SDK Platform 25相关的工具)安装完成,然后再运行就能解决问题。

但是国内下载这些包呢,速度有点慢,一般我们都选择用镜像来下载,国内的镜像站地址有很多,我用的是:

大连东软信息学院镜像服务器地址:mirrors.neusoft.edu.cn 端口:80

(大东软太棒了!!!)

其他的大家可以参考:http://www.androiddevtools.cn/点击打开链接

这个地址里面有具体的使用方法


阅读全文
0 0
原创粉丝点击