ionic android运行报错


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
Alternatively, to learn how to transfer the license agreements from one workstat
ion to another, go to

* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug
option to get more log output.

解决办法很简单,在SDK Manager安装即可
如上提示[Android SDK Platform 25]就是说没装25版本SDK,对应的就是android7.1.1,勾选安装即可。


Please enter your comment!
Please enter your name here