0
問題:MonkeyDevice getViewIdList()拋出NullPointerException異常MonkeyDevice getViewIdList()拋出NullPointerException異常
我如何得到了錯誤:
# Retyped, not copied, excuse typos.
$ monkeyrunner
>>> from com.android.monkeyrunner import MonkeyDevice, MonkeyRunner
>>> device = MonkeyRunner.waitForConnection()
>>> device.getViewIdList()
拋出一個java.lang.NullPointerException
有以下追蹤:
at com.android.chimpchat.ChimpManager.parseResponseforExtra(ChimpManager.java:216)
at com.android.chimpchat.ChimpManager.listViewIds(ChimpManager.java:392)
at com.android.chimpchat.adb.AdbChimpDevice.getViewIdList(AdbChimpDevice.java:604)
at com.android.monkeyrunner.MonkeyDevice.getViewIdList(MonkeyDevice.java:383)
... # Reflection stuff ...
事我沒有解決:
- 更新SDK至最新版本(SDK工具在22.0.5在18.0.1 SDK平臺工具)
- 4.2.2相同的異常和4.3模擬器
我已經江郎才盡了測試和做一些谷歌搜索什麼都沒有。有任何想法嗎?
輝煌,謝謝! – CatShoes