Eurus
Eurus
  • 发布:2024-06-14 16:23
  • 更新:2024-06-14 21:32
  • 阅读:135

真机调试没有问题,云打包安装后白屏

分类:HBuilderX

你好,我们使用云打包服务,6月9号晚上还是好的,6月12号用同样的代码,同样的打包配置,打包安装后只显示导航栏,其他页面全部空白,请问这是怎么回事呢?

2024-06-14 16:23 负责人:无 分享
已邀请:
名字有点长

名字有点长

你这不贴代码片段?不提供demo,别人怎么回答你的问题, 总不至于猜问题呀

  • Eurus (作者)

    打包配置代码如下:

    {

    "name" : "xxxxxxxxxx",

    "appid" : "xxxxxxxxxxx",

    "description" : "",

    "versionName" : "1.0.0",

    "versionCode" : 108,

    "transformPx" : false,

    "app-plus" : {

    / 5+App特有相关 /

    "usingComponents" : true,

    "splashscreen" : {

    "alwaysShowBeforeRender" : true,

    "waiting" : true,

    "autoclose" : true,

    "delay" : 0

    },

    "modules" : {

    "OAuth" : {},

    "Camera" : {},

    "Payment" : {}

    },

    / 模块配置 /

    "distribute" : {

    / 应用发布信息 /

    "android" : {

    / android打包配置 /

    "permissions" : [

    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",

    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",

    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",

    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",

    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",

    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",

    "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",

    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",

    "<uses-permission android:name=\"android.permission.CAMERA\"/>",

    "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",

    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",

    "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",

    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",

    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",

    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",

    "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",

    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",

    "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",

    "<uses-feature android:name=\"android.hardware.camera\"/>",

    "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",

    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"

    ],

    "targetSdkVersion" : 30,

    "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],

    "schemes" : "xxxxxxx"

    },

    "ios" : {

    "dSYMs" : false,

    "capabilities" : {

    "entitlements" : {

    "com.apple.developer.associated-domains" : [ "xxxxxxxxxxxxx" ]

    }

    },

    "idfa" : false

    },

    / ios打包配置 /

    "sdkConfigs" : {

    "ad" : {},


            },  
    "splashscreen" : {
    "useOriginalMsgbox" : true,
    "androidStyle" : "common"
    },
    "icons" : {
    "android" : {
    "hdpi" : "file/logo/80✖️80.png",
    "xhdpi" : "file/logo/120✖️120.png",
    "xxhdpi" : "file/logo/148✖️148.png",
    "xxxhdpi" : "file/logo/196✖️196.png"
    },
    "ios" : {
    "iphone" : {
    "app@2x" : "file/ForApple/120✖️120.png",
    "app@3x" : "file/ForApple/180✖️180.png",
    "spotlight@2x" : "file/ForApple/80✖️80.png",
    "spotlight@3x" : "file/ForApple/120✖️120.png",
    "settings@2x" : "file/ForApple/58✖️58.png",
    "settings@3x" : "file/ForApple/87✖️87.png",
    "notification@2x" : "file/ForApple/40✖️40.png",
    "notification@3x" : "file/ForApple/60✖️60.png"
    },
    "ipad" : {},
    "appstore" : "file/ForApple/1024✖️1024.png"
    }
    }
    }
    },
    /* SDK配置 */
    "quickapp" : {},
    /* 快应用特有相关 */
    "mp-weixin" : {
    /* 微信小程序特有相关 */
    "appid" : "xxxxxxxxxxxxxxxxxxxxxxx",
    "usingComponents" : true,
    "setting" : {
    "urlCheck" : false,
    "minified" : true,
    "postcss" : true
    },
    "uniStatistics" : {
    "enable" : true
    },
    "optimization" : {
    "subPackages" : true
    }
    },
    "mp-alipay" : {
    "usingComponents" : true
    },
    "mp-baidu" : {
    "usingComponents" : true
    },
    "mp-toutiao" : {
    "usingComponents" : true
    },
    "mp-qq" : {
    "usingComponents" : true
    },
    "h5" : {
    "router" : {
    "mode" : "hash",
    "base" : "./"
    }
    },
    "_spaceID" : "mp-68d767ee-ea48-4a1d-8c83-e88d9f3e5caa"

    }

    2024-06-14 21:20

  • 名字有点长

    回复 Eurus: 你这些还是看不出来,你可以尝试一下,把pages.json,里面全部注销,只留一个页面,看看,会出来吗那个页面不? 还有白屏的原因是pages.json pages里面最后多了逗号,也可以排查一下,

    2024-06-15 13:59

  • Eurus (作者)

    回复 名字有点长: 谢谢您提供的意见 我试试

    2024-06-15 16:20

  • Eurus (作者)

    我试了下就放两个测试页面,什么逻辑也没有,结果云打包也还是不行

    2024-06-15 22:19

Eurus

Eurus (作者)

这是安装后的效果

喜欢技术的前端

喜欢技术的前端 - QQ---445849201

自定义基座调试一下,或者发个apk我安装试试

  • Eurus (作者)

    自定义基座调试没问题,就是云打包后安装白屏

    2024-06-15 22:19

要回复问题请先登录注册