E:\ ionic template \ gb \ IonicMaterialDesign> cordova platform add android
使用cordova-fetch for cordova-android@~6.3.0添加android 项目...
Creating Cordova project for the Android platform: Path: platforms\android Package: com.grabhalal.ghadmin Name: gb Activity: MainActivity Android target: android-26 Subproject Path: CordovaLib Android project created with cordova-android@6.3.0 Installing
用于安装Android的“cordova-plugin-app-event”
“cordova-plugin-background-mode”用于android android-sdk版本检查 失败了(“E:\ ionic 模板\ GB \ IonicMaterialDesign \平台\机器人\科尔多瓦\ android_sdk_version“), 无论如何继续。
Plugin dependency "cordova-plugin-device@1.1.2"
already fetched, using that version. Installing
"cordova-plugin-device" for android Installing
"cordova-plugin-crosswalk-webview" for android Subproject Path:
CordovaLib经过对市场的大量讨论和分析,我们有了 决定停止在Crosswalk中支持Android 4.0(ICS) 从版本20开始。所以Cordova项目的minSdkVersion是 默认配置为16。
`Dependent插件“cordova-plugin-device”
已安装在android.Installing`
上
"cordova-plugin-globalization" for android Installing
"cordova-plugin-inappbrowser" for android Installing
"cordova-plugin-splashscreen" for android Installing
`“cordova-plugin-statusbar”for android安装
"cordova-plugin-whitelist" for android This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.
Installing "cordova-plugin-x-socialsharing" for android Subproject
路径:CordovaLib
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm npm install of external
依赖性确定
Error: Path must be a string. Received undefined
答案 0 :(得分:8)
在更新后我发生了同样的事情,最后,解决它的是从我的config.xml中删除“config-file”标签
答案 1 :(得分:1)
使用Cordova Custom Config插件而不是<config-file>
元素为我解决了此问题。