ionic android运行报错

228

ionic android运行报错:
Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* 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 comp
lete the installation of the missing components using the Android Studio SDK Man
ager.
Alternatively, to learn how to transfer the license agreements from one workstat
ion 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 –debug
option to get more log output.

百度这个问题出来的第一个是CSDN的瞎扯文章,别看
原因就是没装对应版本的工具或者SDK
解决办法很简单,在SDK Manager安装即可
如上提示[Android SDK Platform 25]就是说没装25版本SDK,对应的就是android7.1.1,勾选安装即可。

留下一个答复

Please enter your comment!
Please enter your name here