4.最近安装ionic后,新建了一个项目,结果在编译是重试几次都出错:

最近安装ionic后,新建了一个项目,结果在编译是重试几次都出错:

BUILD FAILED

Total time: 3.638 secs

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:

扫描二维码关注公众号,回复: 2930981 查看本文章

[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.

打开android sdk manager.exe后把相应缺少的包安装完成,然后再运行就能解决问题。

猜你喜欢

转载自blog.csdn.net/wx13227855087/article/details/81392044