使用cordova时出现问题。更新Cordova后,我收到“错误:路径必须是字符串!收到未定义”我认为这可能是平台配置的一些问题,所以我删除了Android平台,并试图再次添加它。同样的错误。我更新了所有安装的插件和android SDK。最后一次尝试添加iOS平台并收到相同错误。无法在cordova 7.1.0上添加cordova平台:路径必须是字符串
在更新之前,所有的东西都没问题,并且应用程序已经成功构建。
Cordova version 7.1.0
cordova platform list
Installed platforms:
android 6.3.0
cordova plugin list
com.makina.offline.mbtiles 1.0.0 "MBTilesPlugin"
com.megster.cordova.FileChooser 0.0.0 "File Chooser"
com.phonegap.plugins.nativesettingsopener 1.2 "Native settings"
cordova-plugin-advanced-geolocation 1.1.0 "Cordova Advanced Geolocation Plugin - Android"
cordova-plugin-appversion 1.0.0 "App Version"
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-battery-status 1.2.4 "Battery"
cordova-plugin-buildinfo 1.1.0 "BuildInfo"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 1.1.3 "Device"
cordova-plugin-dialogs 1.3.3 "Notification"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-filepath 1.0.2 "FilePath"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.0 "Splashscreen"
cordova-plugin-sqlite 1.0.3 "Cordova Sqllite Plugine"
cordova-plugin-statusbar 2.2.0 "StatusBar"
cordova-plugin-vibration 2.1.5 "Vibration"
我发现了很多的问题,听起来很相似,但没有找到任何解决方案,因为大多数人认为“删除并重新安装平台和合作”。
你有什么想法吗? 最好的问候和谢谢!
你应该回到'7.0.1'它应该在'7.1.1'中修复 –
我已经尝试过更早的版本导致了其他几个错误...我会在接下来的几天尝试你的解决方案...(if 7.1.1尚不可用...) – TGJahn