Google STS TradeFed失败并出现错误:无法运行命令:com.android.tradefed.config.ConfigurationException:找不到本地配置sts

问题描述

这与Google STS有关。与CTS和VTS相似,使用Google Trade Federation工具来运行这些测试。但是,与CTS和VTS不同,当调用run sts命令时,STS套件会失败:

sts-tf > run sts
Failed to run command: com.android.Tradefed.config.ConfigurationException: Can not find local config sts.
com.android.Tradefed.config.ConfigurationException: Can not find local config sts.
    at com.android.Tradefed.config.ConfigurationFactory$ConfigLoader.findConfigName(ConfigurationFactory.java:346)
    at com.android.Tradefed.config.ConfigurationFactory$ConfigLoader.getConfigurationDef(ConfigurationFactory.java:269)
    at com.android.Tradefed.config.ConfigurationFactory.getConfigurationDef(ConfigurationFactory.java:492)
    at com.android.Tradefed.config.ConfigurationFactory.internalCreateConfigurationFromArgs(ConfigurationFactory.java:600)
    at com.android.Tradefed.config.ConfigurationFactory.createConfigurationFromArgs(ConfigurationFactory.java:528)
    at com.android.Tradefed.command.CommandScheduler.createConfiguration(CommandScheduler.java:1255)
    at com.android.Tradefed.command.CommandScheduler.internalAddCommand(CommandScheduler.java:1287)
    at com.android.Tradefed.command.CommandScheduler.addCommand(CommandScheduler.java:1168)
    at com.android.Tradefed.command.Console$25.run(Console.java:704)
    at com.android.Tradefed.command.Console$25.run(Console.java:687)
    at com.android.Tradefed.command.Console.executeCmdRunnable(Console.java:926)
    at com.android.Tradefed.command.Console.run(Console.java:1028)
    at com.android.compatibility.common.Tradefed.command.CompatibilityConsole.run(CompatibilityConsole.java:105)

关于期望的“本地配置”没有任何线索。一些Google搜索使我想到了这一点: https://android.googlesource.com/platform/tools/tradefederation/+/master/src/com/android/tradefed/config/ConfigurationFactory.java#346

有人知道这里有什么吗?

谢谢。

解决方法

您可以尝试将其作为sts-engbuild运行吗?

完整命令就是这样。

run sts-engbuild -d -o -s <Serial_ID>

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...