我正在尝试获取一个polyfill来解决Android 4.4上的input[type=file]问题。
chrome.fileSystem.chooseEntry 显示对话框,但不显示回调。
无论如何,这看起来很有希望:
https://github.com/cdibened/filechooser
但是使用“cca插件添加...”而不是“cordova插件添加...”失败。
其他帖子建议通过 cca 工具链完成所有操作。
最好的方法是什么?
其他开发者正在采取哪些措施来解决 Android 4.4 上的 input[type=file] 问题?
谢谢,尼克
最佳答案
cca plugin add
转发至 cordova plugin add
,确保路径、版本等正确,因此您的使用是正确的。
此插件无法安装的原因是它 bundle 了 android-support-v4.jar
库,我们也已经安装了。
解决方案很简单:所有插件不应 bundle 外部库,而应使用 plugin.xml
<dependency>
标记单个通用插件以添加这些外部库。
We provide a bunch of these Google 库插件,including for android-support-v4 .
I've filed an issue for us to better handle this error ,但解决方案是联系该插件作者并进行更改,或者 fork 修复并发出拉取请求。
如果您无法做到这一点,请告诉我,我会将其添加到我们的待办事项中!
关于android - 使用 cordova 插件的 mobile-chrome-apps,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23056859/