Cordova 签名的 apk 在启动画面后产生一个空白屏幕 [英] Cordova signed apk produces a blank screen after splash screen

查看:29
本文介绍了Cordova 签名的 apk 在启动画面后产生一个空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Cordova 调试构建工作正常.但是签名apk在启动画面后会产生白屏

Cordova debug build working fine. But signing apk produces white screen after splash screen

已尝试创建新应用并使用发布密钥进行签名.但是签名的 apk 也有同样的问题.

Already tried with creating new app and signing with the release key. But the same issue on signed apk.

cordova version - 7.1.0 
cordova platform android -> 7.1.0

这是我正在使用的插件:

Here are plugins that i'm using:

-  cordova plugin add cordova-plugin-camera  cordova plugin add
-  cordova-plugin-dialogs@~2.0.1  cordova plugin add
-  cordova-plugin-file@~6.0.1  cordova plugin add
-  cordova-plugin-geolocation@~4.0.1  cordova plugin add
-  cordova-plugin-google-analytics@~1.8.6  cordova plugin add
-  cordova-plugin-inappbrowser@~3.0.0  cordova plugin add
-  cordova-plugin-splashscreen@~5.0.2  cordova plugin add
-  cordova-plugin-statusbar@~2.4.2  cordova plugin add
-  cordova-plugin-whitelist@~1.3.3  cordova plugin add
-  cordova-plugin-x-socialsharing@~5.4.1  cordova plugin add
-  ionic-plugin-keyboard@~2.2.1  cordova plugin add
-  cordova-plugin-network-information@~2.0.1  cordova plugin add
-  cordova-plugin-x-toast@~2.6.2  cordova plugin add
-  cordova-plugin-customurlscheme@~4.3.0   cordova plugin add
-  cordova-plugin-file-transfer@~1.7.1  cordova plugin add
-  cordova-plugin-facebook4@~2.2.0   cordova plugin add
-  cordova-plugin-googleplus

如何调试已签名的 apk?查看已签名的 apk 构建中的错误.签名时出现白屏的原因可能是什么?

提前致谢!

推荐答案

大多数情况下,是某个插件导致了目标设备出现问题.现在,你如何调试这个

Most cases, it would be some plugin that is causing the issue with the target device. Now, how can you debug this

  1. Android Studio
  2. 直接在设备上运行您的项目.
  3. 安装 apk 并加载您的cordova 应用程序后,请检查您的logcat 用于潜在的表演阻止者(将显示为红色).确定根本原因后,您就可以着手进行修复.
  1. Load your cordova project in Android Studio
  2. Run your project to the device directly.
  3. Once the apk is installed and your cordova app is loaded, check your logcat for potential show stoppers (will be in red). Once you identify the root cause, you can work on making a fix.

希望这会有所帮助.

这篇关于Cordova 签名的 apk 在启动画面后产生一个空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆