Fighting_Ken
Fighting_Ken
  • 发布:2015-05-22 10:14
  • 更新:2015-05-22 14:37
  • 阅读:5077

Android集成5+SDK,无法进入H5页面

分类:5+ SDK

Android以WebView方式集成H5+ SDK,报异常,无法进入H5页面,具体log如下:
=============================================================
05-22 10:06:48.259: E/com.loanly.ui.MainActivity(18995): onCoreReady
05-22 10:06:48.259: I/DeviceInfo(18995): init() sWifiAddr=null;sDeviceSdkVer=18;sModel=Galaxy S3 - 4.3 - API 18 - 720x1280;sBrand=generic;sVendor=Genymotion;sLanguage=en;dpiX=320.0;dpiY=320.0
05-22 10:06:48.299: I/webapp(18995): Loanly app mFullScreen=false
05-22 10:06:48.299: D/miniserver(18995): 13131 serversocket running...
05-22 10:06:48.303: E/com.loanly.ui.MainActivity(18995): onCoreInitEnd
05-22 10:06:48.303: I/DCloud_LOG(18995): onStart appid=Loanly;intentArgs={}
05-22 10:06:48.303: E/com.loanly.ui.MainActivity(18995): initMainActivity
05-22 10:06:48.303: I/DCloud_LOG(18995): onResume resumeTime=1432260408308
05-22 10:06:48.303: E/com.loanly.ui.MainActivity(18995): onResume mEntryProxy
05-22 10:06:48.303: V/DownloadManager(18995): findDownloadTaskByAdId from provider
05-22 10:06:48.307: I/DCloud_LOG(18995): onPause
05-22 10:06:48.307: D/miniserver(18995): close serversocket port=13131
05-22 10:06:48.315: W/System.err(18995): java.net.SocketException: Socket closed
05-22 10:06:48.315: W/System.err(18995): at libcore.io.Posix.accept(Native Method)
05-22 10:06:48.315: W/System.err(18995): at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:55)
05-22 10:06:48.315: W/System.err(18995): at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:98)
05-22 10:06:48.315: W/System.err(18995): at java.net.ServerSocket.implAccept(ServerSocket.java:202)
05-22 10:06:48.315: W/System.err(18995): at java.net.ServerSocket.accept(ServerSocket.java:127)
05-22 10:06:48.315: W/System.err(18995): at io.dcloud.net.http.LocalServer.run(LocalServer.java:58)
05-22 10:06:48.315: W/System.err(18995): at java.lang.Thread.run(Thread.java:841)
05-22 10:06:48.315: D/miniserver(18995): Exception stop mPort=13131;socket=null;java.net.SocketException: Socket closed;
05-22 10:06:48.315: D/dalvikvm(18995): GC_EXPLICIT freed 1235K, 18% free 7007K/8472K, paused 1ms+0ms, total 9ms
05-22 10:06:48.319: E/mqtt(18995): Creating service
05-22 10:06:48.319: E/PushService(18995): createReceive
05-22 10:06:48.323: W/PushService(18995): Attempt to stop connection not active.
05-22 10:06:48.339: W/EGL_genymotion(18995): eglSurfaceAttrib not implemented
05-22 10:06:48.347: I/PushService(18995): Service destroyed (started=false)
05-22 10:06:48.347: D/PushService(18995): unRegsistRecevice()
05-22 10:06:48.347: I/useTime(18995): name :GET_STATUS_BY_APPID; <<-- -->> wholeUseTime = 0
05-22 10:06:48.347: D/DCloud_LOG(18995): syncStartApp Loanly STATUS_UN_RUNNING
05-22 10:06:48.347: D/appmgr(18995): Loanly will unrunning change to active
05-22 10:06:48.347: I/WebAppInfo(18995): init() get sStatusBarHeight=50
05-22 10:06:48.347: D/Main_Path(18995): create Loanly AppRootView
05-22 10:06:48.347: I/dalvikvm(18995): Could not find method com.nineoldandroids.view.ViewHelper.setX, referenced from method io.dcloud.adapter.ui.AdaFrameItem.onResize
05-22 10:06:48.347: W/dalvikvm(18995): VFY: unable to resolve static method 41740: Lcom/nineoldandroids/view/ViewHelper;.setX (Landroid/view/View;F)V
05-22 10:06:48.347: D/dalvikvm(18995): VFY: replacing opcode 0x71 at 0x006b
05-22 10:06:48.347: W/dalvikvm(18995): VFY: unable to find class referenced in signature (Lcom/nineoldandroids/animation/Animator;)
05-22 10:06:48.347: I/dalvikvm(18995): Could not find method com.nineoldandroids.animation.Animator.addListener, referenced from method io.dcloud.adapter.ui.AdaFrameItem.startAnimator
05-22 10:06:48.347: W/dalvikvm(18995): VFY: unable to resolve virtual method 41714: Lcom/nineoldandroids/animation/Animator;.addListener (Lcom/nineoldandroids/animation/Animator$AnimatorListener;)V
05-22 10:06:48.347: D/dalvikvm(18995): VFY: replacing opcode 0x6e at 0x0010
05-22 10:06:48.355: D/Main_Path(18995): Loanly onAppActive setContentView
05-22 10:06:48.355: I/webapp(18995): Loanly FS_RUNNING_MODE
05-22 10:06:48.355: I/webapp(18995): mLaunchPath=html/index.html
05-22 10:06:48.355: D/Layout_Path(18995): WindowMgr createWindow
05-22 10:06:48.355: D/DCloud_LOG(18995): createWindow0
05-22 10:06:48.355: I/dalvikvm(18995): Failed resolving Lio/dcloud/e/c$1; interface 5710 'Lcom/nineoldandroids/animation/Animator$AnimatorListener;'
05-22 10:06:48.355: W/dalvikvm(18995): Link of class 'Lio/dcloud/e/c$1;' failed
05-22 10:06:48.355: E/dalvikvm(18995): Could not find class 'io.dcloud.e.c$1', referenced from method io.dcloud.e.c.<init>
05-22 10:06:48.355: W/dalvikvm(18995): VFY: unable to resolve new-instance 5920 (Lio/dcloud/e/c$1;) in Lio/dcloud/e/c;
05-22 10:06:48.355: D/dalvikvm(18995): VFY: replacing opcode 0x22 at 0x0027
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.view.ViewHelper.setX, referenced from method io.dcloud.e.c.k
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve static method 41740: Lcom/nineoldandroids/view/ViewHelper;.setX (Landroid/view/View;F)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x71 at 0x0022
05-22 10:06:48.359: I/dalvikvm(18995): Failed resolving Lio/dcloud/e/c$1; interface 5710 'Lcom/nineoldandroids/animation/Animator$AnimatorListener;'
05-22 10:06:48.359: W/dalvikvm(18995): Link of class 'Lio/dcloud/e/c$1;' failed
05-22 10:06:48.359: D/dalvikvm(18995): DexOpt: unable to opt direct call 0xa934 at 0x29 in Lio/dcloud/e/c;.<init>
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to find class referenced in signature (Lcom/nineoldandroids/animation/Animator;)
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.view.ViewHelper.setX, referenced from method io.dcloud.adapter.ui.AdaFrameView.captureAnimation
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve static method 41740: Lcom/nineoldandroids/view/ViewHelper;.setX (Landroid/view/View;F)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x71 at 0x0030
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.view.ViewHelper.setX, referenced from method io.dcloud.adapter.ui.AdaFrameView.readyImage
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve static method 41740: Lcom/nineoldandroids/view/ViewHelper;.setX (Landroid/view/View;F)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x71 at 0x0051
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to find class referenced in signature (Lcom/nineoldandroids/animation/Animator;)
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.animation.Animator.setTarget, referenced from method io.dcloud.adapter.ui.AdaFrameView.startAnimator
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve virtual method 41717: Lcom/nineoldandroids/animation/Animator;.setTarget (Ljava/lang/Object;)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x6e at 0x0047
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to find class referenced in signature (Lcom/nineoldandroids/animation/Animator;)
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.animation.Animator.setTarget, referenced from method io.dcloud.adapter.ui.AdaFrameView.startAnimator
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve virtual method 41717: Lcom/nineoldandroids/animation/Animator;.setTarget (Ljava/lang/Object;)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x6e at 0x0079
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.animation.Animator.addListener, referenced from method io.dcloud.adapter.ui.AdaFrameView.startAnimator
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve virtual method 41714: Lcom/nineoldandroids/animation/Animator;.addListener (Lcom/nineoldandroids/animation/Animator$AnimatorListener;)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x6e at 0x004c
05-22 10:06:48.359: I/dalvikvm(18995): Could not find method com.nineoldandroids.view.ViewHelper.setX, referenced from method io.dcloud.adapter.ui.AdaFrameView.updateFrameRelViewRect
05-22 10:06:48.359: W/dalvikvm(18995): VFY: unable to resolve static method 41740: Lcom/nineoldandroids/view/ViewHelper;.setX (Landroid/view/View;F)V
05-22 10:06:48.359: D/dalvikvm(18995): VFY: replacing opcode 0x71 at 0x002f
05-22 10:06:48.359: I/dalvikvm(18995): Failed resolving Lio/dcloud/adapter/ui/AdaFrameView$1; interface 5710 'Lcom/nineoldandroids/animation/Animator$AnimatorListener;'
05-22 10:06:48.359: W/dalvikvm(18995): Link of class 'Lio/dcloud/adapter/ui/AdaFrameView$1;' failed
05-22 10:06:48.359: D/dalvikvm(18995): DexOpt: unable to opt direct call 0xa5bc at 0x46 in Lio/dcloud/adapter/ui/AdaFrameView;.captureAnimation
05-22 10:06:48.363: W/System.err(18995): java.lang.NoClassDefFoundError: io.dcloud.e.c$1
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.e.c.<init>(DHFrameView.java:214)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.e.h.a(WindowMgr.java:706)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:343)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:198)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.b.a.dispatchEvent(Core.java:318)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.a.processEvent(AppMgr.java:73)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.d.a(WebApp.java:654)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.d.b(WebApp.java:644)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.a$1.onCallBack(AppMgr.java:213)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.d.a(WebApp.java:634)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.a.a.processEvent(AppMgr.java:210)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.b.a.dispatchEvent(Core.java:309)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.b.a.a(Core.java:194)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.b.a$2$1.execute(Core.java:222)
05-22 10:06:48.363: W/System.err(18995): at io.dcloud.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
05-22 10:06:48.367: W/System.err(18995): at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 10:06:48.367: W/System.err(18995): at android.os.Looper.loop(Looper.java:137)
05-22 10:06:48.367: W/System.err(18995): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-22 10:06:48.367: W/System.err(18995): at java.lang.reflect.Method.invokeNative(Native Method)
05-22 10:06:48.367: W/System.err(18995): at java.lang.reflect.Method.invoke(Method.java:525)
05-22 10:06:48.367: W/System.err(18995): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-22 10:06:48.367: W/System.err(18995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-22 10:06:48.367: W/System.err(18995): at dalvik.system.NativeStart.main(Native Method)
05-22 10:06:48.367: W/DCloud_Exception(18995): WindowMgr.processEvent
05-22 10:06:48.367: W/DCloud_Exception(18995): java.lang.NoClassDefFoundError: io.dcloud.e.c$1
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.e.c.<init>(DHFrameView.java:214)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.e.h.a(WindowMgr.java:706)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:343)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:198)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.b.a.dispatchEvent(Core.java:318)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.a.processEvent(AppMgr.java:73)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.d.a(WebApp.java:654)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.d.b(WebApp.java:644)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.a$1.onCallBack(AppMgr.java:213)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.d.a(WebApp.java:634)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.a.a.processEvent(AppMgr.java:210)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.b.a.dispatchEvent(Core.java:309)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.b.a.a(Core.java:194)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.b.a$2$1.execute(Core.java:222)
05-22 10:06:48.367: W/DCloud_Exception(18995): at io.dcloud.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
05-22 10:06:48.367: W/DCloud_Exception(18995): at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 10:06:48.367: W/DCloud_Exception(18995): at android.os.Looper.loop(Looper.java:137)
05-22 10:06:48.367: W/DCloud_Exception(18995): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-22 10:06:48.367: W/DCloud_Exception(18995): at java.lang.reflect.Method.invokeNative(Native Method)
05-22 10:06:48.367: W/DCloud_Exception(18995): at java.lang.reflect.Method.invoke(Method.java:525)
05-22 10:06:48.367: W/DCloud_Exception(18995): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-22 10:06:48.367: W/DCloud_Exception(18995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-22 10:06:48.367: W/DCloud_Exception(18995): at dalvik.system.NativeStart.main(Native Method)
05-22 10:06:48.383: W/System.err(18995): java.lang.NullPointerException
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:208)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.b.a.dispatchEvent(Core.java:318)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.a.processEvent(AppMgr.java:73)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.d.a(WebApp.java:654)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.d.b(WebApp.java:644)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.a$1.onCallBack(AppMgr.java:213)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.d.a(WebApp.java:634)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.a.a.processEvent(AppMgr.java:210)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.b.a.dispatchEvent(Core.java:309)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.b.a.a(Core.java:194)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.b.a$2$1.execute(Core.java:222)
05-22 10:06:48.383: W/System.err(18995): at io.dcloud.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
05-22 10:06:48.383: W/System.err(18995): at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 10:06:48.383: W/System.err(18995): at android.os.Looper.loop(Looper.java:137)
05-22 10:06:48.383: W/System.err(18995): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-22 10:06:48.383: W/System.err(18995): at java.lang.reflect.Method.invokeNative(Native Method)
05-22 10:06:48.383: W/System.err(18995): at java.lang.reflect.Method.invoke(Method.java:525)
05-22 10:06:48.383: W/System.err(18995): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-22 10:06:48.383: W/System.err(18995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-22 10:06:48.383: W/System.err(18995): at dalvik.system.NativeStart.main(Native Method)
05-22 10:06:48.383: W/DCloud_Exception(18995): WindowMgr.processEvent
05-22 10:06:48.383: W/DCloud_Exception(18995): java.lang.NullPointerException
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.e.h.processEvent(WindowMgr.java:208)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.b.a.dispatchEvent(Core.java:318)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.a.processEvent(AppMgr.java:73)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.d.a(WebApp.java:654)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.d.b(WebApp.java:644)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.a$1.onCallBack(AppMgr.java:213)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.d.a(WebApp.java:634)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.a.a.processEvent(AppMgr.java:210)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.b.a.dispatchEvent(Core.java:309)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.b.a.a(Core.java:194)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.b.a$2$1.execute(Core.java:222)
05-22 10:06:48.383: W/DCloud_Exception(18995): at io.dcloud.adapter.util.MessageHandler$1.handleMessage(MessageHandler.java:23)
05-22 10:06:48.383: W/DCloud_Exception(18995): at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 10:06:48.383: W/DCloud_Exception(18995): at android.os.Looper.loop(Looper.java:137)
05-22 10:06:48.383: W/DCloud_Exception(18995): at android.app.ActivityThread.main(ActivityThread.java:5103)
05-22 10:06:48.383: W/DCloud_Exception(18995): at java.lang.reflect.Method.invokeNative(Native Method)
05-22 10:06:48.383: W/DCloud_Exception(18995): at java.lang.reflect.Method.invoke(Method.java:525)
05-22 10:06:48.383: W/DCloud_Exception(18995): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
05-22 10:06:48.383: W/DCloud_Exception(18995): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
05-22 10:06:48.383: W/DCloud_Exception(18995): at dalvik.system.NativeStart.main(Native Method)
05-22 10:06:48.435: W/EGL_genymotion(18995): eglSurfaceAttrib not implemented
=================================================================

PS: 求将SDK开源,不然调试太不方便了 T . T,,,,,,,

2015-05-22 10:14 1 条评论 负责人:无 分享
已邀请:
Android_磊子

Android_磊子

跟sdk demo有什么不一样吗?

  • Fighting_Ken (作者)

    我加了您QQ,我QQ联系你

    2015-05-22 15:08

该问题目前已经被锁定, 无法添加新回复