路径必须是字符串.将cordova升级到7.1.0后收到未定义 [英] Path must be a string. Received undefined after upgrading my cordova to 7.1.0

查看:61
本文介绍了路径必须是字符串.将cordova升级到7.1.0后收到未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

E:\ ionic模板\ gb \ IonicMaterialDesign> cordova平台添加android

将cordova-fetch用于cordova-android@~6.3.0添加android项目... 为Android平台创建Cordova项目:路径:platforms \ android封装:com.grabhalal.ghadmin名称:gb活动:MainActivityAndroid目标:android-26子项目路径:CordovaLib使用cordova-android@6.3.0安装创建的Android项目

"cordova-plugin-app-event"(用于Android安装)

"cordova-plugin-background-mode"用于android android-sdk版本检查失败("E:\ ionictemplate \ gb \ IonicMaterialDesign \ platforms \ android \ cordova \ android_sdk_version),仍然继续.

插件依赖性"cordova-plugin-device@1.1.2"已使用该版本获取.安装

"cordova-plugin-device"(用于Android安装)

"cordova-plugin-crosswalk-webview"(适用于android子项目路径):

CordovaLib经过大量的市场讨论和分析,我们得出决定在Crosswalk中停止对Android 4.0(ICS)的支持从版本20开始.因此Cordova项目的minSdkVersion为默认配置为16.

`从属插件"cordova-plugin-device"

已经安装在android.Installing`

"cordova-plugin-globalization"(用于Android安装)

"cordova-plugin-inappbrowser"(用于Android安装)

"cordova-plugin-splashscreen"(用于Android安装)

`"cordova-plugin-statusbar"用于Android安装

"cordova-plugin-whitelist"(适用于android)此插件仅适用适用于高于4.0的cordova-android版本.如果你有一个以前的平台版本,您*不需要*此插件,因为白名单将被内置.

为Android子项目安装"cordova-plugin-x-socialsharing"

路径:CordovaLib为Android安装"cordova-sqlite-storage" 通过npm安装外部依赖项npm外部安装

可以的依赖关系

错误:路径必须是字符串.收到未定义的

解决方案

更新后,我发生了同样的事情,最后,解决问题的是从我的config.xml中删除了"config-file"标签./p>

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.

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 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.

`Dependent plugin "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

Error: Path must be a string. Received undefined

解决方案

the same thing happened with me after the update, and in the end, what solved it was removing the "config-file" tags from my config.xml

这篇关于路径必须是字符串.将cordova升级到7.1.0后收到未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆