Laya-IDE 打包问题

  1. 版本对齐问题。否则会Crash
    Laya:2.12.0 App:2.12.0

  2. 发布资源:否则会Crash
    Laya发布,平台:WEB
    生成release/web目录资源

  3. 坚屏
    release/web资源搜索:
    window.screenOrientation
    =>
    window.screenOrientation = "portrait";

  4. 资源加载问题
    release/web资源
    换个顺序
    loadLib("libs/laya.physics3D.runtime.js")
    loadLib("libs/laya.physics3D.js")
    =>
    loadLib("libs/laya.physics3D.js")
    loadLib("libs/laya.physics3D.runtime.js")

  5. app生成器
    注意项:

  • 单机版
  • 资源路径 /Path/release/web/
  1. android-studio
  • gradle换成6.0版本
  • build.gradle添加阿里云
  • AndroidManifest.xml 的activity中添加 android:screenOrientation="portrait"
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容