您的位置:首页技术文章
文章详情页

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

浏览:101日期:2024-09-06 14:29:13

问题描述

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

问题解答

回答1:

buildToolsVersion 没有指定,把 build 脚本贴上来看看

补充回答:

首先,请确定是否配置好了环境变量,是否存在 ANDROID_HOME,以及 PATH 中是否有 $ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

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

其次,有可能是 config.xml 中没有配置版本号:

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

相关文章: