這是一段時間我正在與離子角和科爾多瓦的項目 我使用最新版本的離子3.6.0和科爾多瓦7.0.1 問題是,在我的安卓4.4.4它完美,但我總是得到下面就我的Android 6.1.0錯誤的原因,我不知道:科爾多瓦離子3 deviceready沒有發射在android 6
file://android_asset/www/cordova.js: Line 1223 : deviceready has not fired after 5 seconds
file://android_asset/www/cordova.js: Line 1216 : channel not fired : onPluginsReady
file://android_asset/www/cordova.js: Line 1216 : channel not fired : onCordovaReady
file://android_asset/www/cordova.js: Line 1216 : channel not fired : onDOMContentLoaded
Channel not fired onCordovaReady:1216
file://android_asset/www/vendor.js: Line 1 : ERROR
file://android_asset/www/vendor.js: Line 1 : Ionic Native: deviceready did not fire whithin 5000ms. This can happen when plugins are in an inconsistent state try removing plugins from plugins/ and reinstalling them
在www目錄內容的index.html
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<script data-ionic="inject">(function(w){var i=w.Ionic=w.Ionic||{};i.version='3.5.3';i.angular='4.1.3';i.staticDir='build/';})(window);
</script>
<meta charset="UTF-8">
<title>Ionic App</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'" />
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<link rel="icon" type="image/x-icon" href="assets/icon/favicon.ico">
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#4e8ef7">
<!-- cordova.js required for cordova apps -->
<script src="cordova.js"></script>
<!-- un-comment this code to enable service worker
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js')
.then(() => console.log('service worker installed'))
.catch(err => console.error('Error', err));
}
</script>-->
<link href="build/main.css" rel="stylesheet">
</head>
<body>
<!-- Ionic's root component and where the app will load -->
<ion-app></ion-app>
<!-- The polyfills js is generated during the build process -->
<script src="build/polyfills.js"></script>
<script src="build/vendor.js"></script>
<!-- The bundle js is generated during the build process -->
<script src="build/main.js"></script>
</body>
</html>
請幫忙!
您就可以在'www'你'index.html'文件夾? – Sampath
@Sampath查看版本的index.html內容 –