gpt4 book ai didi

android - Calabash Android 运行时错误 : Could not remove keyguard

转载 作者:太空宇宙 更新时间:2023-11-03 16:47:24 25 4
gpt4 key购买 nike

启动测试服务器时出现以下错误。我遵循的步骤是:

1) calabash-android resign features\com.whatsapp-v2.12.114-450480-Android-2.1.apk

2) calabash-android build features\com.whatsapp-v2.12.114-450480-Android-2.1.apk

完成对测试服务器的签名。将其移至 test_servers/55a1d403d4a789d5d979742ac47bc35c_0.5.10.apk

3)adb 设备

连接的设备列表192.168.231.101:5555 设备

4) calabash-android console features\com.whatsapp-v2.12.114-450480-Android-2.1.apk

5) irb(main):001:0> start_test_server_in_background

然后我看到下面的错误..请帮助

Starting calabash-android console...
Loading C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/irbrc
Running irb...
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows
irb(main):001:0> start_test_server_in_background
Starting: Intent { act=android.intent.action.MAIN cmp=com.whatsapp.test/sh.calaba.instrumentationbackend.WakeUp }
Error type 3
Error: Activity class {com.whatsapp.test/sh.calaba.instrumentationbackend.WakeUp} does not exist.
RuntimeError: Could not remove the keyguard
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:567:in `block in wake_up'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/retriable-1.4.1/lib/retriable.rb:9:in `retriable'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:566:in `wake_up'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:590:in `start_test_server_in_background'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/calabash-android-0.5.10/lib/calabash-android/operations.rb:133:in `start_test_server_in_background'
from (irb):1
from C:/Ruby193/bin/irb:12:in `<main>'
irb(main):002:0>

最佳答案

keyguard 基本上是允许锁定您的 android 手机(有或没有 PIN)的功能。在这种情况下,calabash 具有内置代码来处理手机解锁,只要手机未被 pin\password 锁定即可。使用 pin\password 检查您的设备是否已锁定并将其删除

关于android - Calabash Android 运行时错误 : Could not remove keyguard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30660614/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com