CULEBRA:空设备列表

时间:2018-04-10 20:35:17

标签: android python adb androidviewclient

我想使用Culebra和ADB创建一个AVD,但我认为这不是正确的方法,也许我需要使用SKD Android。

操作系统:Windows 10

ADB正在运行

netstat -an | findstr 5037
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING

正在运行Culebra:

AndroidViewClient-master \ tools> python culebra -G

Empty device list, will wait 60 secs for devices to appear
........TIMEOUT HANDLER 3
Exception in thread Thread-4:
Traceback (most recent call last):
  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "C:\Python27\lib\threading.py", line 1073, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Python27\lib\site-packages\androidviewclient-15.1.2-py2.7.egg\com\dtmilano\android\adb\adbclient.py", line 203, in timeoutHandler
    raise Timer.TimeoutException("Timer %d has expired" % timerId)
TimeoutException: Timer 3 has expired

Culebra ADB 是否足以创建AVD?

1 个答案:

答案 0 :(得分:0)

您必须先创建AVD或连接Android设备(即通过USB)。

然后,运行adb以验证它们是否已连接

demo: $ adb devices
List of devices attached
emulator-5554   device

当它们出现时,就像上一个emulator-5554 在线的示例一样,您现在可以运行culebra。如果添加-V(详细),您将看到正在连接的实际设备

demo: $ culebra -GV
Connecting to a device with serialno=.* with a timeout of 60 secs...
Connected to device with serialno=.*
Actual device serialno=emulator-5554

你会看到culebra窗口(看起来很像你的模拟器窗口)

enter image description here

和往常一样,生成python脚本

#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2013-2018  Diego Torres Milano
Created on 2018-04-12 by Culebra v15.1.2
                      __    __    __    __
                     /  \  /  \  /  \  /  \ 
____________________/  __\/  __\/  __\/  __\_____________________________
___________________/  /__/  /__/  /__/  /________________________________
                   | / \   / \   / \   / \   \___
                   |/   \_/   \_/   \_/   \    o \ 
                                           \_____/--<
@author: Diego Torres Milano
@author: Jennifer E. Swofford (ascii art snake)
"""
...