E:\ionic template\gb\IonicMaterialDesign>cordova platform add android
Using cordova-fetch for cordova-android@~6.3.0 Adding android project...
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
"cordova-plugin-app-event" for android Installing
"cordova-plugin-background-mode" for android android-sdk version check failed ("E:\ionic template\gb\IonicMaterialDesign\platforms\android\cordova\android_sdk_version"), continuing anyways.
插件依赖项“cordova-plugin-device@1.1.2”
已经获取,使用该版本。安装
"cordova-plugin-device" for android Installing
"cordova-plugin-crosswalk-webview" for android Subproject Path:
CordovaLib After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20. So the minSdkVersion of Cordova project is configured to 16 by default.
`依赖插件“cordova-plugin-device”
already installed on 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 Installing
"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
Path: CordovaLib
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm npm install of external
dependencies ok
错误:路径必须是字符串。收到未定义
最佳答案
更新后我也发生了同样的事情,最后解决这个问题的是从我的 config.xml 中删除“config-file”标签
关于cordova - 路径必须是字符串。将我的 Cordova 升级到 7.1.0 后收到未定义的消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46987856/