Appium [已解决] android 例子 ContactManager.apk 运行失败

xxl1989 · 2014年05月14日 · 最后由 Mr Wang 回复于 2016年05月13日 · 1597 次阅读

android 例子 ContactManager.apk 运行失败
直接在模拟机上操作,add contact 添加联络人,也会报错 “Contact Manager has stopped”

debug: Appium request initiated at /wd/hub/session/cfc28f86-9ee6-4f1b-88e3-478f8
25d62e9/elements
debug: Request received with params: {"using":"tag name","value":"textfield"}
info: Invalid locator strategy: tag name
info: Responding to client with error: {"status":9,"value":{"message":"Invalid l
ocator strategy: tag name","origValue":"Invalid locator strategy: tag name"},"se
ssionId":"cfc28f86-9ee6-4f1b-88e3-478f825d62e9"}
POST /wd/hub/session/cfc28f86-9ee6-4f1b-88e3-478f825d62e9/elements 500 4ms - 197
b
debug: Appium request initiated at /wd/hub/session/cfc28f86-9ee6-4f1b-88e3-478f8
25d62e9
debug: Request received with params: {}
info: Shutting down appium session...
info: [ADB] Pressing the HOME button
debug: executing: "D:\xxl\java\adt-bundle-windows-x86_64-20140321\sdk\platform-t
ools\adb.exe" -s emulator-5554 shell "input keyevent 3"
info: Stopping logcat capture
debug: Logcat terminated with code null, signal SIGTERM
info: [BOOTSTRAP] [info] Got data from client: {"cmd":"shutdown"}
info: [BOOTSTRAP] [info] Got command of type SHUTDOWN
info: Sent shutdown command, waiting for UiAutomator to stop...
info: [BOOTSTRAP] [info] Returning result: {"value":"OK, shutting down","status"
:0}
info: [BOOTSTRAP] [info] Closed client connection
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=.
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.boots
trap.Bootstrap
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 0
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [UIAUTOMATOR STDOUT] Test results for WatcherResultPrinter=.
info: [UIAUTOMATOR STDOUT] Time: 21.147
info: [UIAUTOMATOR STDOUT] OK (1 test)
info: [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: -1
info: UiAutomator shut down normally
info: Cleaning up android objects
info: Cleaning up appium session
info: Responding to client with success: {"status":0,"value":null,"sessionId":"c
fc28f86-9ee6-4f1b-88e3-478f825d62e9"}
DELETE /wd/hub/session/cfc28f86-9ee6-4f1b-88e3-478f825d62e9 200 5998ms - 89b

求解答,在线等~
初学好多障碍啊

共收到 10 条回复 时间 点赞

你 logcat 看下 crash log。这个是 app crash。。= =

这个问题大多数情况是虚拟机的问题,vm,内存太小或者不兼容。改大一下内存或者,换个虚机试试

@oscar 我在 android4.4 的真机上也装了一个这个 app。也会报上面的错

#3 楼 @xxl1989 嗯,这个 ContactManager.apk 可能就是和一些版本不兼容,不用纠结,找个可以用的 apk 试试,或者换个其他版本的 Android 试试

@oscar 谢谢啊!我试试别的 android 版本,这个问题弄了半天了一直解决不了,心都凉了

ContactManager.apk 的问题。不必纠结。

另外,可以不用新开帖的,上个头像呗~

@anikikun 这样啊!弄不好,真的很纠结!如果是 apk 自己的问题就好了!

感谢 ls 各位!重新下载了个例子,终于运行成功了!以后常驻这里了,大家都太热心了

#9 楼 @xxl1989 根本问题是
这个 target account 是空的

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册