gpt4 book ai didi

android - 电话间隙 : Timeout error calling webviewclient

转载 作者:太空宇宙 更新时间:2023-11-03 10:53:37 25 4
gpt4 key购买 nike

我正在尝试调试我的 phonegap 应用程序。当我尝试在我的模拟器上打开我的应用程序时,我收到一条错误消息,提示 与服务器的连接失败。 (文件:///android_asset/www/index.html)

我应该提到我正在使用 phonegap 构建,所以我没有任何 native 代码。奇怪的是我只加载本地资源,所以我不明白为什么我会超时。我的 index.html 看起来像这样:

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width" />
<title>Mængderabat - spar mere</title>
<script src="http://debug.phonegap.com/target/target-script-min.js#maengderabat"></script>
<script src="phonegap.js" charset="utf-8"></script>
<script src="assets/js/jquery-1.5.2.min.js"></script>
<script src="assets/js/jquery.mobile.js"></script>
<script src="assets/js/jquery.jfeed.pack.js"></script>

<link rel="stylesheet" href="assets/css/jquery.mobile.css" />
<style>
.ui-li-icon{width:16px;height:16px;}
</style>
</head>
<body >
<!-- begin first page -->
<section id="main" data-role="page" data-theme="b">
<header data-role="header">
<h1>Mængderabat - spar mere</h1>
</header>
<div data-role="content" class="content">
<ul id="list" data-role="listview" data-inset="true">
</ul>
</div>

<footer data-role="footer">
<h2>example by Oikos Development</h2>
</footer>
</section>
<!-- end first page -->
</body>
</html>

最佳答案

增加主要 (phonegap) Activity 的超时时间:

setIntegerProperty("loadUrlTimeoutValue", 30000);

关于android - 电话间隙 : Timeout error calling webviewclient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9182855/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com