科尔多瓦文件的插件从未变成就绪Android中 [英] Cordova File plugin never becomes ready in Android
问题描述
我有一个死的简单科尔多瓦应用程序与一个插件:org.apache.cordova.file
I have a dead simple Cordova app with a single plugin: org.apache.cordova.file.
当我模仿在Android模拟器的应用程序,该 deviceready
事件从来没有发射,我得到这个为输出:
When I emulate the app in an android emulator, the deviceready
event is never fired, and I get this as an output:
D/CordovaLog( 1841): file:///android_asset/www/cordova.js: Line 1154 : deviceready has not fired after 5 seconds.
D/CordovaLog( 1841): file:///android_asset/www/cordova.js: Line 1147 : Channel not fired: onFileSystemPathsReady
一些额外的信息:
Some additional information:
cordova --version
3.5.0-0.2.4
javac -version
javac 1.7.0_55
java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1~deb7u1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
index.html的:
index.html:
<!doctype html>
<html>
<head>
</head>
<body>
<script src='cordova.js' type='text/javascript'></script>
<script src='index.js' type='text/javascript'></script>
</body>
</html>
index.js:
index.js:
(function() {
"use strict";
document.addEventListener("deviceready", function() {
console.log("Ready");
}, false);
}());
时的科尔多瓦文件插件坏了吗?难道我做错了什么?有没有其他人遇到这个问题,并找到了解决方法?
Is the Cordova File plugin broken? Am I doing something wrong? Has anyone else come across this issue and found a solution?
推荐答案
我碰到了同样的问题。
I ran into the same issue.
什么工作对我来说是使用不同版本的文件的插件在这里找到: https://github.com/onflapp/cordova-plugin-file
What worked for me was using a different version of the File plugin found here: https://github.com/onflapp/cordova-plugin-file
相关主题:<一href="http://stackoverflow.com/questions/24470166/android-cordova-3-5-0-deviceready-not-firing-after-installing-media-plugin">Android - 科尔多瓦3.5.0 deviceready不触发安装媒体插件
这篇关于科尔多瓦文件的插件从未变成就绪Android中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!