phonegap build cordova.file is undefined
phonegap build cordova.file is undefined
我正在尝试使用File插件构建phonegap应用程序,它在本地运行良好,但使用phonegap构建时,插件不起作用,错误为"cordova.file"未定义这是我的配置
<gap:plugin name="org.apache.cordova.file" />
- 根据其他问题的建议,我删除了(版本号=1.0.1)
此外,phonegap build表示:"此应用程序没有使用最新版本的phonegap。我们建议升级到3.6.3。"
任何帮助都将不胜感激感谢
Look docs:
将以下内容添加到config.xml中以使用此插件的1.0.1版本(推荐)::
<gap:plugin name="org.apache.cordova.file" version="1.0.1" />
您也可以省略版本标记,以便始终使用此插件的最新版本。请注意,这将导致您的应用程序在发布时自动更新为该插件的新版本,并可能导致意外行为。
这就是为什么你可以在本地运行你的应用程序,而不是自动更新,但是当进行构建时,它总是试图更新到最新的插件版本,但你的PhoneGap平台仍然使用插件1.0.1版本,然后undefined
发生。
因此,要删除version
标签,您应该确保您当前的插件版本是最新的
Phonegap在1.0.1之后的版本中存在文件插件新功能问题所以我通过在页面中包含Javascript文件来解决这个问题感谢
相关文章:
- Jquery - table.row(tr) is undefined
- $routeParams is undefined
- Angular js $scope is Undefined
- Angular - $cookies is undefined
- TypeError: e is undefined - javascript
- “google.maps.MapTypeId is undefined”在FF 14中使用GMAP3时
- chrome.storage.local["mykey"] is undefined
- 回调在 Angular2/Firebase 中生成“TypeError: this is undefined”
- KendoWindow .visible(); is undefined?
- jquery: $ is undefined
- ReactDom is undefined
- TypeScript: TypeError b is undefined
- rowdata is undefined
- mozChannels/mozSampleRate is undefined
- phonegap build cordova.file is undefined
- window.jQuery.ui is undefined
- blackberry.io.dir.appDirs is undefined
- Youtube iFrame API 'YT is undefined'
- SignalR $.connection is undefined
- “window.angular is undefined.” 当使用量角器进行自动测试时