Visual Studio 2013 - cordova文件插件问题 [英] Visual studio 2013 - cordova file plugin issue
本文介绍了Visual Studio 2013 - cordova文件插件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi I'm working on Ionic framework for mobile app development in Visual studio 2013.
In config.xml I could not able to add cordova file plugin, it shows couldn't able to download plugin., so I manually installed the Plugin from Git repository. The version of the plugin added is 4.2.0 and I added the following lines of code for file creation
window.resolveLocalFileSystemURL(cordova.file.dataDirectory, function (dir) {
console.log("got main dir", dir);
dir.getFile("log.txt", { create: true }, function (file) {
console.log("got the file", file);
logOb = file;
writeLog("App started");
});
});
But when I try to build the solution, it throws me "couldn't install cordova file plugin" and the build fails. So I downgraded the plugin version to 1.3.1, build succeeds, but it throws "cordova.file" as undefined.
我的尝试:
请帮我解决这个问题,或者如果你能推荐我一个不同的方法来解决这个问题,那就太棒了!
谢谢你的回答
What I have tried:
Please help me resolve this issue or if you could recommend me a different method to get around this issue, that would be great!
Thanks for the answers
推荐答案
从本教程开始:在Channel 9上使用Visual Studio构建Apache Cordova应用程序 [ ^ ]
一些细节如何安装Cordova插件,你会在这里找到:在Visual Studio 2013中安装Cordova插件 - 堆栈溢出 [ ^ ]
Start with this tutorial: Building Apache Cordova Apps with Visual Studio on Channel 9[^]
Some details how to install Cordova plugin, you'll find here: Installing Cordova Plugins in Visual Studio 2013 - Stack Overflow[^]
这篇关于Visual Studio 2013 - cordova文件插件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文