zoukankan      html  css  js  c++  java
  • 使用ionic生成apk时遇到的错误:[ERROR] An error occurred while running subprocess cordova

    刚开始,一直盯着这句红色的错误看,没注意看上面的报错,网络上的方法都试过了,没有一个管用的,后来发现报错的具体内容。

    * What went wrong:
    A problem occurred configuring project ':app'.
    > Failed to install the following Android SDK packages as some licences have not been accepted.
         build-tools;28.0.3 Android SDK Build-Tools 28.0.3
      To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
      Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
    
      Using Android SDK: C:Program FilesSDK
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 2s
    [ERROR] An error occurred while running subprocess cordova.
    
            cordova build android exited with exit code 1.
    
            Re-running this command with the --verbose flag may provide more information.

     Failed to install the following Android SDK packages as some licences have not been accepted.
         build-tools;28.0.3 Android SDK Build-Tools 28.0.3

    原来是因为我安装的SDK打包工具版本错了,后来按照错误提示,安装了28.0.3的版本,问题解决。

  • 相关阅读:
    bzoj 1087: [SCOI2005]互不侵犯King
    左偏树+菲波那切堆
    bzoj 4455: [Zjoi2016]小星星
    luogu P1941 飞扬的小鸟
    luogu P2814 家谱
    平衡树之非旋Treap
    luogu P3147 [USACO16OPEN]262144
    luogu P1854 花店橱窗布置
    计蒜客NOIP2018模拟1
    [BZOJ3456]城市规划(生成函数+多项式求逆+多项式求ln)
  • 原文地址:https://www.cnblogs.com/magicalconch/p/14457567.html
Copyright © 2011-2022 走看看