使用科尔多瓦插件移动铬应用 [英] mobile-chrome-apps using cordova plugin
问题描述
我想在Android 4.4得到填充工具的发行与输入[类型=文件。
I'm trying to get a polyfill for the issue with input[type=file] on Android 4.4.
chrome.fileSystem.chooseEntry显示的对话框而不是回调。
chrome.fileSystem.chooseEntry shows the dialog but not the callback.
总之这一下(S)/(ED)有前途的:
Anyhow this look(s)/(ed) promising:
https://github.com/cdibened/filechooser
但使用CCA插件添加...,而不是科尔多瓦插件添加...失败。
but using the "cca plugin add..." instead of "cordova plugin add..." fails.
其他帖子建议通过CCA工具链做的一切。
Other posts recommend doing everything through the cca toolchain.
什么是最好的方法呢?
什么是其他开发人员在Android 4.4是如何处理问题的输入[type = file]
What are other developers doing about the issue with input[type=file] on Android 4.4?
谢谢,尼克
推荐答案
CCA插件添加
转发了以科尔多瓦插件添加
,确保该路径,版本等都是正确的,所以你是正确的使用它。
cca plugin add
forwards off to cordova plugin add
, making sure that the paths, versions, etc are correct, so you were right to use that.
这个插件安装失败的原因是因为它是捆绑 Android的支持 - v4.jar
库,我们也已安装。
The reason this plugin fails to install is because it is bundling the android-support-v4.jar
library, which we already also install.
分辨率很简单:所有的插件不应该捆绑外部库,而应使用的plugin.xml
<依赖>
在一个共同的标签插件添加这些外部库。
The resolution is simple: all plugins should not bundle external libraries, and should instead use a plugin.xml
<dependency>
tag on a single common plugin to add these external libraries.
我们提供了一堆这些插件谷歌库,的包括Android的支持-V4 。
我已提出一个问题让我们更好地处理这种错误,但分辨率达到了该插件的作者和做出改变,或叉子修复并发出一拉请求。
I've filed an issue for us to better handle this error, but the resolution is to reach out to that plugin author and make the change, or fork fix and issue a pull request.
如果你不能做到这一点,让我知道,我将它添加到我们的积压!
If you are not able to do this, let me know and I will add it to our backlog!
这篇关于使用科尔多瓦插件移动铬应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!