search

Home  >  Q&A  >  body text

ionic 项目 ionic build android -release 打包时报错

黄舟黄舟2772 days ago510

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:35:46

    buildToolsVersion is not specified, please post the build script and have a look

    Additional answer:

    First of all, please make sure whether the environment variables are configured, whether ANDROID_HOME exists, and whether there is $ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

    in PATH
    ANDROID_HOME= 你的 sdk 位置
    PATH= 原来的 PATH;$ANDROID_HOME/tools;$ANDROID_HOME/platform-tools

    Secondly, it is possible that there is no configuration version number in config.xml:

    <widget xmlns="http://www.w3.org/ns/widgets"
            xmlns:cdv="http://cordova.apache.org/ns/1.0"
            ...
            version="你的版本号"
            android-versionCode="你的版本号">
            ...

    reply
    0
  • Cancelreply