You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ionic Cordova build --release后背景色异常,模拟器显示正常求助

Ionic Cordova打包Release版本后背景色异常问题

执行ionic cordova emulate android --livereload命令在模拟器中运行应用时,背景色为黑色且显示正常;但执行ionic cordova build android --release命令打包Android发布版本后,应用背景色变为白色。

截图对比

  • 模拟器运行状态截图:livereload截图
  • 发布版本打包后截图:release打包后截图

环境配置信息

Ionic:

   Ionic CLI                     : 6.20.1 (C:\Users\fahri\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 6.2.1
   @angular-devkit/build-angular : 14.1.1
   @angular-devkit/schematics    : 14.1.1
   @angular/cli                  : 14.1.1
   @ionic/angular-toolkit        : 6.1.0

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 9.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)

工具:

   cordova-res : 0.15.4
   native-run  : 1.6.0

系统:

   Android SDK Tools : 26.1.1 (D:\apps\Sdk)
   NodeJS            : v16.16.0 (C:\Program Files\nodejs\node.exe)
   npm               : 8.11.0
   操作系统                : Windows 10

恳请各位帮忙解决此问题。

内容的提问来源于stack exchange,提问作者M. Fahril Pratama

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.22 19:54:19