gpt4 book ai didi

android.util.AndroidException : INSTRUMENTATION_FAILED

转载 作者:行者123 更新时间:2023-11-29 00:24:12 25 4
gpt4 key购买 nike

Armandos-MacBook-Air:cucumber armando.rodriguez$ calabash-android run m ......apk找不到此应用程序和葫芦版本组合的测试服务器。重新创建测试服务器。完成签署测试服务器。将其移至 test_servers/430f6c154d763823fecdda70ac84695a_0.4.18.apk功能:登录应用

  Scenario: Successful login                             # features/login.feature:3
as first time after
restart the simulator
4629 KB/s (555713 bytes in 0.117s)
4840 KB/s (665402 bytes in 0.134s)
android.util.AndroidException: INSTRUMENTATION_FAILED: com......test/sh.calaba.instrumentationbackend.CalabashInstrumentationTestRunner
at com.android.commands.am.Am.runInstrument(Am.java:586)
at com.android.commands.am.Am.run(Am.java:117)
at com.android.commands.am.Am.main(Am.java:80)
at com.android.internal.os.RuntimeInit.finishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:238)
at dalvik.system.NativeStart.main(Native Method)
App did not start (RuntimeError)

有什么想法吗?

最佳答案

这让我很困惑,但最终只是因为我没有足够的信息来了解检测失败的原因。

通过一些测试,我发现问题是 instrumentation APK 已安装,验证通过

adb shell pm list instrumentation | grep <my.package.name>

但是仪器应该测试的包没有安装,验证通过

adb shell pm list packages | grep <my.package.name>

问题是我试图安装调试版本,而生产版本已经存在(在我的例子中,具有不同的包名称)在我有冲突的 ContentProvider 的设备上。这可能更像是一种边缘情况,但我想还有其他情况,其中 calabash 试图在已经具有具有相同包名称的 APK 的设备上安装不同签名的 APK。

关于android.util.AndroidException : INSTRUMENTATION_FAILED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20961417/

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