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 http://d.android.com/r/studio-ui/export-licenses.html
Run with –stacktrace option to get the stack trace. Run with –info or –debug
option to get more log output.
如上提示[Android SDK Platform 25]就是说没装25版本SDK，对应的就是android7.1.1，勾选安装即可。