【发布时间】:2017-03-28 07:59:01
【问题描述】:
我是 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 android.intent.action.MAIN -c android.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.
【问题讨论】:
-
您使用的是哪个 android studio 版本?
-
试试
Run>Attach debugger to android process -
Aditya Vyas-Lakkan 2.2.3 版
-
@Egek92 我试过了,但是确定按钮是灰色的