• 欢迎访问趣尚博客、分享互联网、软件、编程、创业、英语、VPS 推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您喜欢我的博客,那么请使用Ctrl+D 收藏吧!

ionic build android报错

Android qushang 4年前 (2017-03-18) 1646次浏览

ionic build android报错

 

Error: /Users/pengting/iOS/my_mobile_app/platforms/android/gradlew: 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:
  [SDK Patch Applier v4, Google Repository, Android Support Repository].
  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 --debug option to get more log output.

 

出现这个问题,首先看到的是SDK Patch Applier v4, Google Repository, Android Support Repository

是没有安装完整的问题

搜了下google

通过命令

 

android update sdk –no-ui –filter build-tools-24.0.0,android-24,extra-android-m2repository

echo y | android update sdk –no-ui –all –filter “extra-google-m2repository”

解决了此问题

 

 

 


极客公园 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:ionic build android报错
喜欢 (0)
[399397742@qq.com]
分享 (0)