启动屏幕后,科尔多瓦签名的apk产生空白屏幕 [英] Cordova signed apk produces a blank screen after splash screen

查看:62
本文介绍了启动屏幕后,科尔多瓦签名的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. 将您的cordova项目加载到 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.

希望这会有所帮助.

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

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