[LayaAirIDE 2.0]打包安卓Android studio黑屏

Laya2.0实例打包安卓,打开后LayaLogo加载解锁,就黑屏了。
已邀请:

刘海东

赞同来自:

1111111111

刘海东

赞同来自:

07/23 10:52:17: Launching app
$ adb install-multiple -r -t F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_3.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_5.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_6.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_9.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\dep\dependencies.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_2.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_8.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_7.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\resources\instant-run\debug\resources-debug.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_4.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_0.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\split-apk\debug\slices\slice_1.apk F:\GWCT\Android\test\android_studio\app\build\intermediates\instant-run-apk\debug\app-debug.apk 
Split APKs installed in 5 s 958 ms
$ adb shell am start -n "com.layabox.test/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Connected to process 27883 on device huawei-mha_al00-3HX0217401012320
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/om.layabox.tes: Reinit property: dalvik.vm.checkjni= false
D/ZrHung.AppEyeUiProbe: AppEyeUIP created.
D/ActivityThread: Attach thread to application
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.layabox.test#10205#256
I/HwApiCacheMangerEx: apicache path=/storage/emulated/0 state=mounted key=com.layabox.test#10205#0
W/om.layabox.tes: JIT profile information will not be recorded: profile file does not exits.
I/chatty: uid=10205(com.layabox.test) identical 10 lines
W/om.layabox.tes: JIT profile information will not be recorded: profile file does not exits.
I/InstantRun: starting instant run server: is main process
I/AwareBitmapCacher: init processName:com.layabox.test pid=27883 uid=10205
E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist!
E/AwareLog: AtomicFileUtils: readFileLines file not exist: android.util.AtomicFile@37d62ba
D/ZrHung.AppEyeUiProbe: notify runnable to start.
D/ZrHung.AppEyeUiProbe: Runnable thread started.
D/IMonitor: Load library imonitor_jni
V/ActivityThread: Skipping new config:{1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw360dp w360dp h578dp 480dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1808) mAppBounds=Rect(0, 0 - 1080, 1808) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.29}, config:{1.0 ?mcc?mnc [zh_CN_#Hans] ldltr sw360dp w360dp h578dp 480dpi nrml long port finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 1808) mAppBounds=Rect(0, 0 - 1080, 1808) mWindowingMode=fullscreen mActivityType=undefined} nonFullScreen=0 suim:1 s.29} for app:com.layabox.test
V/HwPolicyFactory: : success to get AllImpl object and return....
V/ActivityThread: callActivityOnCreate
I/HwApsImpl: APS: new HwApsImpl created
I/hwaps: HwAps: JNI_OnLoad
V/HwWidgetFactory: : successes to get AllImpl object and return....
D/TextView: get Display Panel Type is : 0
D/OpenGLRenderer: Skia GL Pipeline
D/HwAppInnerBoostImpl: set config for com.layabox.test BOOST_FLAG=false REPORT_DURATION_CLICK=1000 REPORT_TIMES_CLICK=3 REPORT_DURATION_SLIDE=5000 REPORT_TIMES_SLIDE=16
D/OpenGLRenderer:   HWUI Binary is  enabled
    disableOutlineDraw is true
D/a: Mainactivity---------------------------------oncreate
    Mainactivity---------------------------------initEngine
D/: >>>>>>>>>>>>>>>>>>>>>>>>
E/LayaGameEngine: game_plugin_set_option key=localize value=false
    game_plugin_set_option key=gameUrl value=https://gwctgame.lwfjmj.com
D/LayaGameEngine: game_plugin_init url =https://gwctgame.lwfjmj.com
    url=https://gwctgame.lwfjmj.com
D/RuntimeProxy: laya_get_value key=CacheDirInSdcard
    laya_get_value key=CacheDir
D/RuntimeProxy: laya_get_value key=ExpansionMainPath
    laya_get_value key=ExpansionPatchPath
I/layaConch3: m_interceptKey OK!
E/LayaConch5: >>>>>>>conchjar android-2.0.8
E/LayaConch5: plugin-----------------onCreate() 
E/: m_pPlatform = layaair.game.Market.MarketTest@e007a4
I/LayaBox: setLocalizable:0
    JNI setIsPlug:0
    JNI seturl:https://gwctgame.lwfjmj.com
E/LayaBox: =======================addStaticMethod=========zza66c0460
D/MarketTest: >>>>>>>>>>>>>>>>MarketLaya init ok
E/0: ==============Java流程 InitMainCanvas()
E/LayaConch5: plugin-----------------EngineStart() = /data/user/0/com.layabox.test//LayaCache/localstorage
I/LayaBox: JNI localStoragePath=/data/user/0/com.layabox.test//LayaCache/localstorage
I/MainCanvas: Android OpenGL ES Major Version 3
I/WebViewFactory: Loading com.google.android.webview version 71.0.3578.99 (code 357809950)
I/cr_LibraryLoader: Time to load native libraries: 2 ms (timestamps 4539-4541)
I/chromium: [INFO:library_loader_hooks.cc(36)] Chromium logging enabled: level = 0, default verbosity = 0
I/cr_LibraryLoader: Expected native library version number "71.0.3578.99", actual native library version number "71.0.3578.99"
W/cr_ChildProcLH: Create a new ChildConnectionAllocator with package name = com.google.android.webview, sandboxed = true
I/cr_BrowserStartup: Initializing chromium process, singleProcess=false
D/ConnectivityManager: requestNetwork and the calling app is: com.layabox.test
W/om.layabox.tes: Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;-><init>(Landroid/content/Context;I)V (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker;->logEvent(Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;)V (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionStarted(I)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(II)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionModified(IILandroid/view/textclassifier/TextSelection;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(III)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
    Accessing hidden method Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent;->selectionAction(IIILandroid/view/textclassifier/TextClassification;)Landroid/view/textclassifier/logging/SmartSelectionEventTracker$SelectionEvent; (light greylist, reflection)
I/layaConch5: m_interceptKey OK!
I/LayaBox: JNI InitDLib
    JNI InitDownLoadManager CachePath=/data/user/0/com.layabox.test//LayaCache, assetroot=cache, APKExpansionMain=, APKExpansionPatch= 
    >>>>>>Thread Mode = double
I/LayaBox: This device supports vao
    download thread num = 3
I/LayaBox: start thread:image decode,27961
I/LayaBox: createOpenALSource current num=10
E/LayaGameEngine: game_plugin_init soPath= jarfile= appcache=/data/user/0/com.layabox.test/
    game_plugin_get_view
D/a: Mainactivity---------------------------------initEngineOver
D/ActivityThread: add activity client record, r= ActivityRecord{47ea83 token=android.os.BinderProxy@a688adc {com.layabox.test/demo.MainActivity}} token= android.os.BinderProxy@a688adc
V/PlayerBase: baseStart() piid=595319
D/ZrHung.AppEyeUiProbe: notify runnable to start.
D/android.media.AudioTrack: [HSM] AudioTrace play() uid: 10205, pid: 27883
I/LayaBox: JNI OnAppResume
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.LayaAudioMusic,methodName:resumeBackgroundMusic
    >>>>>>>>>>>>before
E/LayaBox: >>>>>>>>>>>>after
D/ConnectivityManager: requestNetwork and the calling app is: com.layabox.test
I/HiTouch_HiTouchSensor: enabledInPad = false,isPcCastMode = false
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
    android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/iGraphics: [0020080c] pn: com.layabox.test, p: 27883
I/HiTouch_HiTouchSensor: enabledInPad = false,isPcCastMode = false
I/iGraphics: [0030080c] no spt app: com.layabox.test
I/OpenGLRenderer: Initialized EGL, version 1.4, mEglDisplay 0x1
D/OpenGLRenderer: Swap behavior 2
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/iGraphics: [0030080c] opt app: 0
D/OpenGLRenderer:   HWUI Binary is  enabled
    disableOutlineDraw is true
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
W/InputMethodManager: startInputReason = 1
E/: >>>>>>>>>>>>surfaceChanged w=1080,h=1808 gl=com.google.android.gles_jni.GLImpl@d264acf
I/LayaBox: JNI onGLReady tid=27920
    JNI surface innersize changed : g_nInnerWidth=1080,g_nInnerHeight=1808
    JNI init dev w=1080,h=1808
    OpenGL ES version [OpenGL ES 3.2 v1.r14p0-00cet0.b33ebadea0b6ef5b967c7f21064b122d]
    Start js scripts/apploader.js
I/0: >>>>>>>>>>>>>The network has changed
I/0: connected type=1
I/ViewRootImpl: jank_removeInvalidNode jank list is null
D/OpenGLRenderer:   HWUI Binary is  enabled
    disableOutlineDraw is true
W/InputMethodManager: startInputReason = 5
W/cr_CrashFileManager: /data/user/0/com.layabox.test/cache/WebView/Crash Reports does not exist or is not a directory
I/LayaBox: js thread started.
    js debug closed
I/LayaBox: found the file in the package:scripts/runtimeInit.js
I/LayaBox: found the file in the package:scripts/apploader.js
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair/game/browser/ExportJavaFunction,methodName:GetDeviceInfo
    >>>>>>>>>>>>before
E/LayaBox: java.lang.SecurityException: getDeviceId
E/LayaBox: java.lang.SecurityException: getSubscriberId
E/LayaBox: >>>>>>>>>>>>after
I/LayaBox: getDeviceInfo::get_Value={"dpi":480,"resolution":"1808*1080","guid":"14:9d:09:5d:24:f7","imei":["UnKnow"],"imsi":[null],"os":"android","osversion":"9","phonemodel":"MHA-AL00"}
E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem
    >>>>>>>>>>>>before
I/: total:3805108.0
E/LayaBox: >>>>>>>>>>>>after
I/LayaBox: found the file in the package:app.json
I/LayaBox:  require(/sdcard/layabox/scripts/scripts/index.js)
     require(/sdcard/layabox/scripts/index.js)
    found the file in the package:scripts/index.js
I/LayaBox:  require(/sdcard/layabox/scripts/async.js)
    found the file in the package:scripts/async.js
I/LayaBox: setCachePath:/data/user/0/com.layabox.test//LayaCache//appCache/
    read index:/data/user/0/com.layabox.test//LayaCache//appCache/fd0901a4/filetable.txt
W/LayaBox: read DCC file table failed
I/AudioTrack: audioTrack continuously zero data counter >= 20, send pause/stop state to pg, counter: 20
I/LayaBox: found the file in the package:font/layabox.ttf
I/LayaBox:  require(/sdcard/layabox/scripts/config.js)
    found the file in the package:scripts/config.js
I/LayaBox: JSRuntime::callMethod {}
I/chatty: uid=10205(com.layabox.test) Thread-11 identical 1 line
I/LayaBox: JSRuntime::callMethod {}
    alert=开始加载
I/LayaBox: Download [  ]:https://gwctgame.lwfjmj.com/up ... .2963
I/LayaBox: >>>JCConchRender::clearAllData =-2042346256
I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
    loadFeature() new IHwSplineOverScrollerEx()
D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@5261c51,android.view.ContextThemeWrapper@580ecb6
    initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
    loadFeature() new IHwSplineOverScrollerEx()
D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@9a71e42,android.view.ContextThemeWrapper@580ecb6
D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
    loadFeature() new IHwSplineOverScrollerEx()
D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@40cdc8e,android.view.ContextThemeWrapper@580ecb6
    initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
I/FLTAG_FM: loadFeature class:com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
I/FLTAG_SFM: getRequireClassLoader() succ ! className: com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
D/FeatureFactory: loadFeature() : com.huawei.featurelayer.systemfeature.HwWidget.IHwSplineOverScrollerEx
    loadFeature() new IHwSplineOverScrollerEx()
D/HwSplineOverScrollerExImpl: initSplineOverScrollerImpl paras: android.widget.OverScroller$SplineOverScroller@7abf8bc,android.view.ContextThemeWrapper@580ecb6
    initSplineOverScrollerImpl: mScrollerVelocity is 0, value is 0
D/OpenGLRenderer:   HWUI Binary is  enabled
    disableOutlineDraw is true
D/OpenGLRenderer:   HWUI Binary is  enabled
    disableOutlineDraw is true
I/HiTouch_HiTouchSensor: enabledInPad = false,isPcCastMode = false
D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
I/LayaBox: Download end:404
    Downloaded https://gwctgame.lwfjmj.com/up ... 6.129 s=0 l=0
I/LayaBox: Download [  ]:https://gwctgame.lwfjmj.com/
I/LayaBox: Download end:200
    Downloaded https://gwctgame.lwfjmj.com/@39.108.156.129 s=0 l=2204
I/LayaBox: JSRuntime::callMethod {}
W/libEGL: EGLNativeWindowType 0x7d83ab1010 disconnect failed
D/AwareBitmapCacher: handleInit switch not opened pid=27883
I/om.layabox.tes: WaitForGcToComplete blocked HeapTrim on ProfileSaver for 13.827ms
I/om.layabox.tes: Starting profile saver IsSaveProfileNow end.

要回复问题请先

商务合作
商务合作