首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >android-gts在ubuntu16.04上设置android-gts

android-gts在ubuntu16.04上设置android-gts
EN

Stack Overflow用户
提问于 2020-02-07 05:42:57
回答 1查看 825关注 0票数 2

我尝试在ubuntu16.04上设置andorid-gts。python版本为2.7.16。我已经安装了以下软件包:

代码语言:javascript
复制
pip install future
pip install protobuf
pip install auth
pip install compiler
pip install virtualenv
pip install PyPi
pip install google-cloud-storage
pip install oauth2client

但当我尝试从控制台运行gts命令时,我总是得到以下错误:

代码语言:javascript
复制
android Google Mobile Services (GMS) Test Suite 7.0_r3 (6045416)
Use "help" or "help all" to get more information on running commands.
02-06 15:25:34 I/DeviceManager: Detected new device xxxxxxxx
gts-tf > run gts
02-06 15:25:39 I/TestInvocation: Starting invocation for 'gts' with '[ DeviceBuildInfo{bid=6045416, serial=xxxxxxxx} on device 'xxxxxxxx'] 
02-06 15:25:53 W/BusinessLogicPreparer: Option config-filename isn't set. Using empty string instead.
02-06 15:25:53 W/BusinessLogicPreparer: Option version isn't set. Using 'null' instead.
02-06 15:27:54 W/NativeDevice: TimeoutException () when attempting adb content on device xxxxxxxx
02-06 15:30:04 W/NativeDevice: TimeoutException () when attempting adb content on device xxxxxxxx
02-06 15:32:13 W/NativeDevice: TimeoutException () when attempting adb content on device xxxxxxxx
02-06 15:32:21 W/TestInvocation: Invocation did not complete due to device xxxxxxxx becoming not available. Reason: Attempted adb content multiple times on device xxxxxxxx without communication success. Aborting.
02-06 15:33:02 E/RunCommandTargetPreparer: Skipping command teardown since exception was DeviceNotAvailable
02-06 15:33:02 E/RunCommandTargetPreparer: Skipping command teardown since exception was DeviceNotAvailable
02-06 15:33:02 I/SuiteResultReporter: 
============================================
================= Results ==================
=============== Consumed Time ==============
Total aggregated tests run time: 0 ms
=============== Summary ===============
Total Run time: 7m 22s
0/0 modules completed
Total Tests       : 0
PASSED            : 0
FAILED            : 0
============== End of Results ==============
============================================

gts-tf > 

我猜可能是超时日志造成的:

代码语言:javascript
复制
02-06 15:27:54 W/NativeDevice: TimeoutException () when attempting adb content on device xxxxxxxx
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-02-17 00:40:59

此错误是由旧的adb版本引起的。只要使用android sdk中的adb版本就可以了。如果您使用sudo apt-get install adb,则会发生此超时错误。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60103988

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档