我在我的项目中使用uiautomator API。我发现uiautomator.jar
有 stubbed API,而它们的实现存在于sources
sdk 文件夹下。
public static UiDevice getInstance()
{
throw new RuntimeException("Stub!");
}
我现在该怎么办?
我在我的项目中使用uiautomator API。我发现uiautomator.jar
有 stubbed API,而它们的实现存在于sources
sdk 文件夹下。
public static UiDevice getInstance()
{
throw new RuntimeException("Stub!");
}
我现在该怎么办?
由于 UiDevice 是一个单例类,我需要调用 getInstance()
致电您getUiDevice()
以获取您的实例。UiAutomatorTestCase
UiDevice