有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Android应用程序启动至设备的白色屏幕

我是Android开发者的新手,我也经历过类似的话题,但还没有帮助。 在我添加扫描二维码的功能之前,我创建了一个应用程序,它正在运行。它在模拟器上工作,但当我在三星设备上运行它时,它会启动到一个白色屏幕,我的日志是这样写的:

Launching app
No apk changes detected since last installation, skipping installation of .....
$ adb shell am force-stop com.KtvrBusSerice.KtvrBusService.KtvrBusService
$ adb shell am start -n "com.KtvrBusSerice.KtvrBusService.KtvrBusService/com.KtvrBusSerice.KtvrBusService.KtvrBusService.LoginActivity" -a 安卓.intent.action.MAIN -c 安卓.intent.category.LAUNCHER
Client not ready yet..Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Waiting for process to come online
Connected to process 22097 on device samsung-sm_g930f-0123456789ABCDEF
D/jdwp: sendBufferedRequest : len=0x79
Application terminated.

共 (2) 个答案

  1. # 2 楼答案

    将此添加到AndroidManifest。xml在您的

    <application>
        android:allowBackup="true"
        android:hardwareAccelerated="false"
        android:largeHeap="true"
    </application>