应用程序无法打开,很长一段时间后,很长、应用程序、无法打开

2023-09-04 04:10:51 作者:俯身观人间

我开发一个工作灯的应用程序。我生成的Andr​​oid环境,为项目......在Android的应用程序,我能看到背景的主屏幕,但有一个繁忙的图标,它持续很长一段时间,我无法在主页上点击任意位置时,我运行模拟器上的应用程序。过了一段时间,它说:客户端初始化失败。连接到服务不可用

我收到以下日志警告

  

跳过37帧!该应用程序可能会做它的主线程的工作太多了。

我在日志中有这些错误

  

SQLiteLog:(14)无法打开文件在[00bb9c9ce4] 30176行

     

SQLiteLog:(14)os_unix.c:30176:(2)开(/CachedGeoposition.db) -

     

响应[http://9.124.23.225:8080/apps/services/api/RQMLight/android/heartbeat]成功:

我收到的网址如下信息:

  

/ * - 安全 -   {WL-认证不成功:{wl_remoteDisableRealm:{理由:登录失败}}} * /

!日志这里

我也收到错误

  

CordovaWebViewClient.onReceivedError错误:code = -6说明=的连接   服务器是不成功的。   URL =文件:///data/data/com.RQMLight/files/www/default/RQMLight.html

  

onMessage(onReceivedError,{"error$c$c":-6,"url":"file:///data/data/com.RQMLight/files/www/default/RQMLight.html","description":"The   连接服务器失败。})

解决方案

我通过添加延伸WLDroidGap主Java类以下行解决了这个问题。里面onWLInitCompleted写这个()方法

  super.setIntegerProperty(loadUrlTimeoutValue,60000);
 
并没有设置,但是开机后某些基本应用程序启动会出现长时间的延迟,什么原因

I am developing an worklight application. I generated android environment for the project... In the android app, I am able to see the main screen on background, but there is a busy icon which continues for long time, and i am unable to click on the main page anywhere when i am running the app on emulator. After some time, it says "Client init failed. Connection to the service is unavailable"

I am getting the following log warning

Skipped 37 frames! The application may be doing too much work on its main thread.

I have these errors in the log

SQLiteLog: (14) cannot open file at line 30176 of [00bb9c9ce4]

SQLiteLog: (14) os_unix.c:30176: (2) open(/CachedGeoposition.db) -

response [http://9.124.23.225:8080/apps/services/api/RQMLight/android/heartbeat] success:

I am getting the following message on the url :

/*-secure- {"WL-Authentication-Failure":{"wl_remoteDisableRealm":{"reason":"Login Failed"}}}*/

! Logs here

I am also getting the error

CordovaWebViewClient.onReceivedError: Error code=-6 Description=The connection to the server was unsuccessful. URL=file:///data/data/com.RQMLight/files/www/default/RQMLight.html

and

onMessage(onReceivedError,{"errorCode":-6,"url":"file:///data/data/com.RQMLight/files/www/default/RQMLight.html","description":"The connection to the server was unsuccessful."})

解决方案

I solved this problem by adding the following line in the main java class which extends WLDroidGap. Write this inside onWLInitCompleted() method

super.setIntegerProperty("loadUrlTimeoutValue", 60000);