0

Jythonプログラムを介したAndroidデバイスのテストにmonkeyrunnerを使用していますが、ViewClientオブジェクトの作成中にエラーが発生します。エラーの詳細を以下に示します。

例外:Viewサーバーを起動できません。これは、エミュレーターと開発者バージョンを実行しているデバイスでのみ機能します。階層ビューアーはデバイスで機能しますか?

コマンドラインからhierarchyviewerコマンドを入力すると、次のようになります。

D:\Telus\Pyton Programs>hierarchyviewer
The standalone version of hieararchyviewer is deprecated.
Please use Android Device Monitor (tools/monitor.bat) instead.
04:57:24 E/hierarchyviewer: Unable to get view server version from device 644276034934
04:57:24 E/hierarchyviewer: Unable to get view server protocol version from device 644276034934
04:57:27 E/hierarchyviewer: Unable to debug device 644276034934
4

1 に答える 1

0

これは AVC の制限です。AndroidViewClient はエミュレータ用であり、開発者バージョンを実行するためのものであり、AVC を使用して実際のデバイスでアプリケーションをテストすることはできません。このhttp://developer.android.com/tools/debugging/debugging-ui.htmlでhiearachyviewerの詳細情報を見つけることができます

于 2012-12-13T13:21:37.900 に答える