【问题标题】:Systrace of android sdk does not support multiple devices?android sdk 的 Systrace 不支持多设备?
【发布时间】:2020-11-07 14:28:11
【问题描述】:

当我使用 -e 选项来指定设备时,会发生错误。

raise device_errors.MultipleDevicesError(devices)
devil.android.device_errors.MultipleDevicesError: More than one device available. Use -d/--device to select a device by serial.

【问题讨论】:

    标签: android performance systrace


    【解决方案1】:

    你在使用this python 脚本吗?命令是什么样的?

    你能试试这个吗:
    python <android-sdk>/platform-tools/systrace/systrace.py --list-categories -e <device-serial-number>

    【讨论】:

    • 是的,我使用脚本cmd。 -e 选项有错误。它对你有用吗?
    • 为我工作。 --list-categories -e <serial> 是否给您同样的错误?你的 Python 版本是什么? Systrace 仅支持 Python 2.7。
    • 我必须使用 -e <serial> --list-categories 才能让它在我的 Windows 机器上运行。 IE。顺序很重要。
    猜你喜欢
    • 2013-09-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-14
    • 1970-01-01
    • 2011-11-06
    相关资源
    最近更新 更多