新建一个UI示例项目,D:/work/native_test
用命令 layadcc D:/work/native_test/bin 打包
然后构建eclipse项目,打出apk包作为基础包
构建的时候配置 URL路径是本地路径
http://10.0.0.114:8900/bin/index.html
然后我在view里面隐藏了两个button,作为改变
用命令 layadcc D:/work/native_test/bin 打包
运行之前的基础apk,然后还是显示旧的view(也就是那两个button依然可见)
另外 还经常出现
05-10 18:07:04.156: I/LayaBox(8836): Downloaded http://10.0.0.114:8900/bin/update/assetsid.txt?rand=768988794230.6891@ s=0 l=0
05-10 18:07:04.176: I/LayaBox(8836): onerror UnknownError
05-10 18:07:04.196: I/LayaBox(8836): xhr.GET url=http://10.0.0.114:8900/bin/index.html
05-10 18:07:04.236: I/LayaBox(8836): Download [ ]:http://10.0.0.114:8900/bin/index.html
05-10 18:07:12.244: E/LayaBox(8836): download error: timeout, dt=8,opttimeout=1798
05-10 18:07:12.244: I/LayaBox(8836): Downloaded http://10.0.0.114:8900/bin/index.html@ s=0 l=0
05-10 18:07:12.254: I/LayaBox(8836): xhr.GET url=http://10.0.0.114:8900/bin/index.html
05-10 18:07:12.254: I/LayaBox(8836): Download [ ]:http://10.0.0.114:8900/bin/index.html
05-10 18:07:20.252: E/LayaBox(8836): download error: timeout, dt=8,opttimeout=1798
05-10 18:07:20.252: I/LayaBox(8836): Downloaded http://10.0.0.114:8900/bin/index.html@ s=0 l=0
05-10 18:07:20.272: I/LayaBox(8836): xhr.GET url=http://10.0.0.114:8900/bin/index.html
这样的错误