[]示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function

$ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.layabox.game.test | com.layabox.game
Connecting to com.layabox.game
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
D/dalvikvm: Late-enabling CheckJNI
W/ActivityThread: Application com.layabox.game is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/dalvikvm: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1300)
E/LayaGameEngine: game_plugin_set_option key=localize value=true
E/LayaGameEngine: game_plugin_set_option key=gameUrl value=http://stand.alone.version/index.html
D/LayaGameEngine: game_plugin_init url =http://stand.alone.version/index.html
D/LayaGameEngine: url=http://stand.alone.version/index.html
D/RuntimeProxy: laya_get_value key=CacheDirInSdcard
D/RuntimeProxy: laya_get_value key=CacheDir
D/RuntimeProxy: laya_get_value key=ExpansionMainPath
D/RuntimeProxy: laya_get_value key=ExpansionPatchPath
I/layaConch3: m_interceptKey OK!
E/LayaConch5: >>>>>>>conchjar android-2.0.8
E/LayaConch5: plugin-----------------onCreate()
D/dalvikvm: JIT code cache reset in 0 ms (0 bytes 1/0)
D/dalvikvm: GC_FOR_ALLOC freed 259K, 10% free 3081K/3408K, paused 2ms, total 2ms
D/dalvikvm: GC_FOR_ALLOC freed 292K, 10% free 3303K/3656K, paused 2ms, total 3ms

            [ 12-18 14:33:06.111  2961: 2961 E/         ]
            m_pPlatform = layaair.game.Market.MarketTest@4a7c91fc
D/dalvikvm: Trying to load lib /data/app-lib/com.layabox.game-2/liblayaair.so 0x94f7d5b8
D/dalvikvm: Added shared lib /data/app-lib/com.layabox.game-2/liblayaair.so 0x94f7d5b8
I/LayaBox: setLocalizable:1
I/LayaBox: JNI setIsPlug:0
I/LayaBox: JNI seturl:http://stand.alone.version/index.html
E/LayaBox: =======================addStaticMethod=========zzb7a62db0
D/MarketTest: >>>>>>>>>>>>>>>>MarketLaya init ok
E/0: ==============Java流程 InitMainCanvas()
E/LayaConch5: plugin-----------------EngineStart() = /data/data/com.layabox.game//LayaCache/localstorage
I/LayaBox: JNI localStoragePath=/data/data/com.layabox.game//LayaCache/localstorage
V/WebViewChromium: Binding Chromium to the background looper Looper (main, tid 1) {4a7bba70}
I/chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0
I/BrowserProcessMain: Initializing chromium process, renderers=0
W/chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation
D/libEGL: loaded /system/lib/egl/libEGL_adreno.so

          [ 12-18 14:33:06.171  2961: 2961 D/         ]
          HostConnection::get() New Host Connection established 0xb7c05ce0, tid 2961
D/libEGL: loaded /system/lib/egl/libGLESv1_CM_adreno.so
D/libEGL: loaded /system/lib/egl/libGLESv2_adreno.so
D/dalvikvm: GC_FOR_ALLOC freed 161K, 9% free 3412K/3712K, paused 3ms, total 3ms
I/dalvikvm-heap: Grow heap (frag case) to 3.996MB for 635808-byte allocation
D/dalvikvm: GC_FOR_ALLOC freed <1K, 7% free 4033K/4336K, paused 3ms, total 3ms
I/layaConch5: m_interceptKey OK!
I/LayaBox: JNI InitDLib
I/LayaBox: JNI InitDownLoadManager CachePath=/data/data/com.layabox.game//LayaCache, assetroot=cache, APKExpansionMain=, APKExpansionPatch=
I/LayaBox: download thread num = 3
I/LayaBox: start thread:image decode,2987
I/LayaBox: found the file in the package:shaders/todevVS.glsl
I/LayaBox: found the file in the package:shaders/fillColorPS.glsl
I/LayaBox: found the file in the package:shaders/drawImagePS.glsl
I/LayaBox: found the file in the package:shaders/fillImagePS.glsl
I/LayaBox: found the file in the package:shaders/drawFilterImagePS.glsl
I/LayaBox: found the file in the package:shaders/blurImg.glsl
I/LayaBox: found the file in the package:shaders/glowImg.glsl
I/LayaBox: found the file in the package:shaders/drawMatFilterImagePS.glsl
I/LayaBox: createOpenALSource current num=10
E/LayaGameEngine: game_plugin_init soPath= jarfile= appcache=/data/data/com.layabox.game/
E/LayaGameEngine: game_plugin_get_view
I/LayaBox: JNI OnAppResume
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:resumeBackgroundMusic
E/LayaBox: >>>>>>>>>>>>before
E/LayaBox: >>>>>>>>>>>>after
I/0: >>>>>>>>>>>>>The network has changed
I/0: connected type=1
W/EGL_emulation: eglSurfaceAttrib not implemented 3093 12436
D/OpenGLRenderer: Enabling debug mode 0

                  [ 12-18 14:33:06.311  2961: 2973 D/         ]
                  HostConnection::get() New Host Connection established 0xb7cd0300, tid 2973
W/MainCanvas: creating OpenGL ES 2.0 context
I/LayaBox: JNI onGLReady tid=2973
I/LayaBox: JNI surface innersize changed : g_nInnerWidth=1280,g_nInnerHeight=720
I/LayaBox: JNI init dev w=1280,h=720
I/LayaBox: INFO:gles 支持的最大顶点属性个数=16
I/LayaBox: Start js scripts/apploader.js
I/LayaBox: js thread started.
I/LayaBox: found the file in the package:scripts/runtimeInit.js
I/LayaBox: found the file in the package:scripts/apploader.js
I/LayaBox: found the file in the package:scripts/load.js
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair/game/browser/ExportJavaFunction,methodName:GetDeviceInfo
E/LayaBox: >>>>>>>>>>>>before
E/LayaBox: >>>>>>>>>>>>after
I/LayaBox: getDeviceInfo::get_Value={"guid":"08:00:27:fd:6f:ab","os":"android","imei":["866879010002244"],"phonemodel":"HUAWEI G7-L11","imsi":["460070022476360"],"resolution":"720*1280","dpi":240,"osversion":"4.4.2"}
I/LayaBox:  {"guid":"08:00:27:fd:6f:ab","os":"android","imei":["866879010002244"],"phonemodel":"HUAWEI G7-L11","imsi":["460070022476360"],"resolution":"720*1280","dpi":240,"osversion":"4.4.2"}
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem
E/LayaBox: >>>>>>>>>>>>before

           [ 12-18 14:33:06.541  2961: 2996 I/         ]
           total:1030652.0
E/LayaBox: >>>>>>>>>>>>after
I/LayaBox: found the file in the package:app.json
I/LayaBox:  require(/sdcard/layabox/scripts/scripts/index.js)
I/LayaBox:  require(/sdcard/layabox/scripts/index.js)
I/LayaBox: found the file in the package:scripts/index.js
I/LayaBox:  ====================================================== 
I/LayaBox:               LAYA CONCH           
I/LayaBox:       runtimeversion:android-conch5-0.9.12
I/LayaBox:            jsversion:2.1.3.1
I/LayaBox:               isplug:false
I/LayaBox:  ======================================================
I/LayaBox:  require(/sdcard/layabox/scripts/async.js)
I/LayaBox: found the file in the package:scripts/async.js
I/LayaBox:  loadURL:http://stand.alone.version/index.html
I/LayaBox: setCachePath:/data/data/com.layabox.game//LayaCache//appCache/
I/LayaBox: found the file in the package:cache/stand.alone.version/assetsid.txt
I/LayaBox: read index:/data/data/com.layabox.game//LayaCache//appCache/9ea141a6/filetable.txt
E/LayaBox: JCFileRes::onDownloadError file error[1]:file:///data/data/com.layabox.game/LayaCache/localstorage/logo/logo.png
I/LayaBox:  require(/sdcard/layabox/scripts/config.js)
I/LayaBox: found the file in the package:scripts/config.js
I/LayaBox:  xhr.GET url=http://stand.alone.version/index.html
I/LayaBox: found the file in the package:cache/stand.alone.version/ea224b42
I/LayaBox:  >>>>>>>>>>>>>>>>innerWidth:1280innerHeight:720
I/LayaBox: 
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/8fa3770f
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/2fbab6cf
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/dcaf01b3
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/6771fca6
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/1ffa1cdf
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/a7ab530d
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... in.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... in.js
I/LayaBox: found the file in the package:cache/stand.alone.version/d79b860d
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/libs/min/laya.ui.min.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/libs/min/laya.ui.min.js
I/LayaBox: found the file in the package:cache/stand.alone.version/6d5c1452
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/libs/matter.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/libs/matter.js
I/LayaBox: found the file in the package:cache/stand.alone.version/f4ff8b3c
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/lib ... ya.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/lib ... ya.js
I/LayaBox: found the file in the package:cache/stand.alone.version/d6fb8de6
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/js/ui/layaUI.max.all.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/js/ui/layaUI.max.all.js
I/LayaBox: found the file in the package:cache/stand.alone.version/dff3ef14
I/LayaBox:  HTMLScriptElement set srchttp://stand.alone.version/main.min.js
I/LayaBox:  _downloadAysn:temp.srchttp://stand.alone.version/main.min.js
I/LayaBox: found the file in the package:cache/stand.alone.version/814ab0e9
W/LayaBox: download image file error! file:////data/data/com.layabox.game//LayaCache//localstorage/logo/logo.png
I/LayaBox:  xhr.GET url=file:////data/data/com.layabox.game//LayaCache//localstorage/logo.swf
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:138
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:0
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:15
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:3
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:4
I/MonkVG: Creating context 1024, 768, 2
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:6
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... in.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:5
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/min/laya.ui.min.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:30
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/libs/matter.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:45
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/lib ... ya.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:0
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/js/ui/layaUI.max.all.js
I/LayaBox:  >>>>>>>>>>>>>>>>>eval take time:2
I/LayaBox:  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/main.min.js
I/LayaBox: alert=http://stand.alone.version/lib ... js:1: TypeError: this.preinitialize is not a function
           !1,i.__super.call(this),this._layout=B.EMPTY,this.preinitialize(),this.createChildren(),this.initial
           TypeError: this.preinitialize is not a function
               at i (http://stand.alone.version/lib ... 1:5549)
               at i (http://stand.alone.version/lib ... :11162)
               at i (http://stand.alone.version/lib ... :23993)
               at GameUI (http://stand.alone.version/js/ ... :11:19)
               at Function.eval (http://stand.alone.version/lib ... 1:2776)
               at a (http://stand.alone.version/main.min.js:1:3032)
               at eval (http://stand.alone.version/main.min.js:1:4414)
               at eval (native)
               at Document._downloadOk (apploader.js:6095:20)
               at apploader.js:6074:20
W/EGL_emulation: eglSurfaceAttrib not implemented 3093 12436
已邀请:

wudi199553

赞同来自:

检查下自己代码有没有写错,然后打地鼠是单机版的,别忘了把单机版的勾给勾上

mingyijie

赞同来自:

我又试了一遍,还是不行,确认是勾选了单机版的,代码的话点调试能直接运行的

wudi199553

赞同来自:

你把你的打地鼠Demo发给我,我看看

mingyijie

赞同来自:

我把发布的内容删除了,这个上传的文件好像有大小限制

mingyijie

赞同来自:

这个有结果吗?

要回复问题请先

商务合作
商务合作