[]LayaAirNative初始化的4个问题
前提:native版本为0.9.13,compileSdk版本为27,minSdk为18,LayaAir引擎为1.7.14beta
1.打包方式为网络包,包中含有版本信息allfile.txt等4个文件,在第一次运行的时候,发现输入的log如下:
assetsid old: new:0393b8879ba545fcdc6fa52d0c9bcecf
请问为什么包中有assetsid.txt,但却读不到assetsid,导致还要重复下载filetable.bin(虽然这个文件并不大)
2.如果我的网络比较不好(并非断网),会有很大概率访问不到allfile.txt,从而弹出原生提示(就是在config.js中配置的,在=12ptwindow.onLayaInitError事件触发的时候显示的那句话
),导致后续无法进行,请问有没有办法避免这种情况的出现(比如多重试几次,或者就以本地的allfile.txt为版本信息)
3.在native下,为了避免index.html中引用的js入口文件过大,我采取了分模块编译的方式,即是将引擎和1个入口类做出基础js,其他代码编译成模块js,这样会有两个问题,就是这个编译出来的js比较大,在执行下面代码做模块初始化的时候,会有5秒钟左右的停顿,请问这个情况可以做优化么,如果可以的话,如何进行优化呢
__JS__("window.eval(str)")
var game:* = __JS__("new Game(this.enviroment)");
4.在游戏初始化的时候,一定会报这两个异常,请问是为啥
06-27 18:03:47.976 27945-27945/com.twand.kozhanji I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$6>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at com.android.webview.chromium.WebViewContentsClientAdapter com.android.webview.chromium.WebViewChromiumFactoryProvider.createWebViewContentsClientAdapter(android.webkit.WebView, android.content.Context) (WebViewChromiumFactoryProvider.java:328)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.browser.ao.<init>(android.content.Context, layaair.game.conch.LayaConch5) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.InitView() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.EngineStart() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.PlatformInitOK(int) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.PlatformInterface.LayaPlatformCallback.LP_InitCallback(int) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.MarketTest.LP_Init(android.content.Context) (MarketTest.java:35)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.onCreate() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.GameEngine.game_plugin_init(int) (GameEngine.java:89)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.initEngine() (MainActivity.java:168)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:123)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6847)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2677)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2785)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1532)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.os.Looper.loop() (Looper.java:163)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6342)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:880)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:770)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/system/app/WebViewGoogle/WebViewGoogle.apk"],nativeLibraryDirectories=[/system/app/WebViewGoogle/lib/arm64, /system/app/WebViewGoogle/WebViewGoogle.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at com.android.webview.chromium.WebViewContentsClientAdapter com.android.webview.chromium.WebViewChromiumFactoryProvider.createWebViewContentsClientAdapter(android.webkit.WebView, android.content.Context) (WebViewChromiumFactoryProvider.java:328)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.browser.ao.<init>(android.content.Context, layaair.game.conch.LayaConch5) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.InitView() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.EngineStart() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.PlatformInitOK(int) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.PlatformInterface.LayaPlatformCallback.LP_InitCallback(int) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.MarketTest.LP_Init(android.content.Context) (MarketTest.java:35)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.onCreate() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.GameEngine.game_plugin_init(int) (GameEngine.java:89)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.initEngine() (MainActivity.java:168)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:123)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6847)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2677)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2785)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1532)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.os.Looper.loop() (Looper.java:163)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6342)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:880)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:770)
1.打包方式为网络包,包中含有版本信息allfile.txt等4个文件,在第一次运行的时候,发现输入的log如下:
assetsid old: new:0393b8879ba545fcdc6fa52d0c9bcecf
请问为什么包中有assetsid.txt,但却读不到assetsid,导致还要重复下载filetable.bin(虽然这个文件并不大)
2.如果我的网络比较不好(并非断网),会有很大概率访问不到allfile.txt,从而弹出原生提示(就是在config.js中配置的,在=12ptwindow.onLayaInitError事件触发的时候显示的那句话
),导致后续无法进行,请问有没有办法避免这种情况的出现(比如多重试几次,或者就以本地的allfile.txt为版本信息)
3.在native下,为了避免index.html中引用的js入口文件过大,我采取了分模块编译的方式,即是将引擎和1个入口类做出基础js,其他代码编译成模块js,这样会有两个问题,就是这个编译出来的js比较大,在执行下面代码做模块初始化的时候,会有5秒钟左右的停顿,请问这个情况可以做优化么,如果可以的话,如何进行优化呢
__JS__("window.eval(str)")
var game:* = __JS__("new Game(this.enviroment)");
4.在游戏初始化的时候,一定会报这两个异常,请问是为啥
06-27 18:03:47.976 27945-27945/com.twand.kozhanji I/art: Rejecting re-init on previously-failed class java.lang.Class<com.android.webview.chromium.WebViewContentsClientAdapter$6>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/webkit/RenderProcessGoneDetail;
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at com.android.webview.chromium.WebViewContentsClientAdapter com.android.webview.chromium.WebViewChromiumFactoryProvider.createWebViewContentsClientAdapter(android.webkit.WebView, android.content.Context) (WebViewChromiumFactoryProvider.java:328)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.browser.ao.<init>(android.content.Context, layaair.game.conch.LayaConch5) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.InitView() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.EngineStart() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.PlatformInitOK(int) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.PlatformInterface.LayaPlatformCallback.LP_InitCallback(int) ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.MarketTest.LP_Init(android.content.Context) (MarketTest.java:35)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.onCreate() ((null):-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.GameEngine.game_plugin_init(int) (GameEngine.java:89)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.initEngine() (MainActivity.java:168)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:123)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6847)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2677)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2785)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1532)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.os.Looper.loop() (Looper.java:163)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6342)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:880)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:770)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.webkit.RenderProcessGoneDetail" on path: DexPathList[[zip file "/system/app/WebViewGoogle/WebViewGoogle.apk"],nativeLibraryDirectories=[/system/app/WebViewGoogle/lib/arm64, /system/app/WebViewGoogle/WebViewGoogle.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64, /system/lib64, /vendor/lib64]]
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at com.android.webview.chromium.WebViewContentsClientAdapter com.android.webview.chromium.WebViewChromiumFactoryProvider.createWebViewContentsClientAdapter(android.webkit.WebView, android.content.Context) (WebViewChromiumFactoryProvider.java:328)
06-27 18:03:47.977 27945-27945/com.twand.kozhanji I/art: at void com.android.webview.chromium.WebViewChromium.init(java.util.Map, boolean) (WebViewChromium.java:42)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int, java.util.Map, boolean) (WebView.java:636)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int, int) (WebView.java:572)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet, int) (WebView.java:555)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context, android.util.AttributeSet) (WebView.java:542)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.webkit.WebView.<init>(android.content.Context) (WebView.java:532)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.browser.ao.<init>(android.content.Context, layaair.game.conch.LayaConch5) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.InitView() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.EngineStart() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.PlatformInitOK(int) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.PlatformInterface.LayaPlatformCallback.LP_InitCallback(int) ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.MarketTest.LP_Init(android.content.Context) (MarketTest.java:35)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.conch.LayaConch5.onCreate() ((null):-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void layaair.game.Market.GameEngine.game_plugin_init(int) (GameEngine.java:89)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.initEngine() (MainActivity.java:168)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void demo.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:123)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6847)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1119)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2677)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2785)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.-wrap12(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1532)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.os.Looper.loop() (Looper.java:163)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void android.app.ActivityThread.main(java.lang.String) (ActivityThread.java:6342)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object) (Method.java:-2)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:880)
06-27 18:03:47.978 27945-27945/com.twand.kozhanji I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String) (ZygoteInit.java:770)
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
douzhix
赞同来自:
Aar0n
赞同来自:
第一个问题,提供一下apk和log日志,正常情况不应该出现这种问题。
第二题,网络原因这个问题搞不了,网络不好不是引擎能左右的,
第三题,这个js大编译的时间是必然的,只能做一些视觉上的遮盖,让用户感觉不到这个时间。
第四题,提供一下机型,另外说一下这个报错是否影响运行。
douzhix
赞同来自: