[]laya打包APK无法进入游戏

打包环境:1.7.14beta
 
发布h5后,将h5项目发布成apk,进入游戏后报错
加载游戏失败,可能由于您的网络不稳定,请退出重进
 
报错信息如下:
03-07 15:59:40.935: W/LayaBox(24066): download error: timeout, dt=8,opttimeout=179803-07 15:59:40.935: W/LayaBox(24066): download error: timeout, dt=8,opttimeout=1798
03-07 15:59:40.935: I/LayaBox(24066): Downloaded http://stand.alone.version/src/view/pop/popAdv.js@ s=0 l=0
03-07 15:59:40.935: I/LayaBox(24066): Downloaded http://stand.alone.version/src ... js%40 s=0 l=0
03-07 15:59:40.935: E/LayaBox(24066): JCFileRes::onDownloadError file error[28]:http://stand.alone.version/src/view/pop/popAdv.js
03-07 15:59:40.935: E/LayaBox(24066): JCFileRes::onDownloadError file error[28]:http://stand.alone.version/src ... ll.js
03-07 15:59:40.935: I/LayaBox(24066): Download [  ]:http://stand.alone.version/src ... ge.js
03-07 15:59:40.937: I/LayaBox(24066): Download [  ]:http://stand.alone.version/src ... ct.js
03-07 15:59:40.943: I/LayaBox(24066):  onLayaInitError error=Load script error
03-07 15:59:40.945: I/LayaBox(24066): alert=加载游戏失败,可能由于您的网络不稳定,请退出重进
03-07 15:59:40.947: I/LayaBox(24066):  onLayaInitError error=Load script error
03-07 15:59:40.949: I/LayaBox(24066): alert=加载游戏失败,可能由于您的网络不稳定,请退出重进
03-07 15:59:40.949: I/LayaBox(24066):  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/src ... ll.js
03-07 15:59:40.949: I/LayaBox(24066):  >>>>>>>>>>>>>>>>>eval take time:0
03-07 15:59:40.950: I/LayaBox(24066):  >>>>>>>>>>>>>>>evalhttp://stand.alone.version/src/view/pop/popAdv.js
03-07 15:59:40.950: I/LayaBox(24066):  >>>>>>>>>>>>>>>>>eval take time:0

qian

赞同来自:

资源路径必须是项目发布之后release文件夹中index.html所在的目录,如果项目中有设置横竖屏的话index.html中也要设置。设置横竖屏可以看下这篇文档: https://ldc.layabox.com/doc/?nav=zh-as-7-1-2
 

梦太晚

赞同来自:

请问可否告知,android studio这个报错怎么解决

不能叫真名

赞同来自:

横竖屏设置我也改了,但是还是提示网络不稳定弹窗,请问怎么解决

不能叫真名

赞同来自:

其实是laya自己写的初始化失败就会弹这个弹窗,不一定和横竖屏设置有关。如果游戏能正常进行的话把这句话注释掉就行了

不能叫真名

赞同来自:


其实是laya自己写的初始化失败就会弹这个弹窗,不一定和横竖屏设置有关。如果游戏能正常进行的话把这句话注释掉就行了

要回复问题请先

商务合作
商务合作