Youyongnan
Youyongnan
  • 发布:2025-09-03 16:45
  • 更新:2025-09-03 17:44
  • 阅读:26

【报Bug】uniapp 打包AAB包 上传GooglePlay下载后 APP UI显示异常

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win11

HBuilderX类型: 正式

HBuilderX版本号: 4.76

手机系统: Android

手机系统版本号: Android 14

手机厂商: 小米

手机机型: Mi 11

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: GooglePlay下载地址:https://play.google.com/apps/internaltest/4700965537140638930,Android apk包下载地址:https://apps.all-iot.cn/downloadHtml/index.html?id=23

示例代码:
<view class="mrt-114" style="position: relative;">  
                <image class="search-loading" src="../../../static/search.png" mode=""></image>  
                <image class="search-wifi"  
                    style="width: 100rpx;height: 100rpx;position: absolute;left: 50%;top: 50%;z-index: 99;transform: translate(-50%,-50%);"  
                    src="../../../static/search_wifi.png" mode=""></image>  
            </view>  

<style>  
.mrt-114 {  
        margin-top: 114rpx;  
        text-align: center;  
        position: relative;  
    }  

.search-loading {  
        width: 490rpx;  
        height: 490rpx;  
        /* animation: turn 1s infinite; */  
        animation: rotate 2s linear infinite;  
    }  

    .search-wifi {  
        width: 100rpx !important;  
        height: 100rpx !important;  
        position: absolute !important;  
        left: 50% !important;  
        top: 50% !important;  
        z-index: 99 !important;  
        transform: translate(-50%, -50%) !important;  
    }  
</style>

操作步骤:

下载APP 登录,进入首页在设备列表往下滑点击添加图片,然后选择WIFI或者蓝牙进入相应页面,多次退出打开即可复显

预期结果:

类名为 ‘search-wifi’的图片 在类名 ‘search-loading’的图片之上显示

实际结果:

类名为 ‘search-wifi’的图片偶尔能显示,大多数时间直接不显示

bug描述:

在页面上放了两张图片,第一张正常给宽高样式,第二张给了定位让其在第一张图片之上显示,现在在Android和iOS上都正常显示,但是打包的aab包在GooglePlay上下载下来,第二张给了定位的图偶尔能显示,大多数时候打开APP都显示不了

2025-09-03 16:45 负责人:无 分享
已邀请:
DCloud_Android_zl

DCloud_Android_zl

apk文件无法复现,是只有aab才会有这个问题?如果仅在aab中能复现,需要将aab转成apk之后重签名发给我。参考文档;https://developer.android.com/tools/bundletool?hl=zh-cn

要回复问题请先登录注册