gpt4 book ai didi

android - Espresso android - IllegalStateException : UiAutomationService android.accessibilityservice.IAccessibilityServiceClient 已经注册

转载 作者:行者123 更新时间:2023-12-04 13:53:25 28 4
gpt4 key购买 nike

对于以下定义的规则,在 AWS 上随机运行 IllegalStateException 异常

@Rule
public GrantPermissionRule permissionRule = GrantPermissionRule.grant(<permissions>)
这是异常跟踪
INSTRUMENTATION_STATUS: stack=java.lang.IllegalStateException: UiAutomationService android.accessibilityservice.IAccessibilityServiceClient$Stub$Proxy@8129d6balready registered!
at android.os.Parcel.createException(Parcel.java:2079)
at android.os.Parcel.readException(Parcel.java:2039)
at android.os.Parcel.readException(Parcel.java:1987)
at android.app.IUiAutomationConnection$Stub$Proxy.connect(IUiAutomationConnection.java:427)
at android.app.UiAutomation.connect(UiAutomation.java:241)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2167)
at android.app.Instrumentation.getUiAutomation(Instrumentation.java:2124)
at androidx.test.runner.permission.UiAutomationShellCommand.<init>(UiAutomationShellCommand.java:65)
at androidx.test.runner.permission.PermissionRequester.addPermissions(PermissionRequester.java:92)
at androidx.test.rule.GrantPermissionRule.grantPermissions(GrantPermissionRule.java:100)
at androidx.test.rule.GrantPermissionRule.grant(GrantPermissionRule.java:94)
有什么问题?

最佳答案

这是您的 Android 模拟器错误!尝试另一个或删除并再次创建新...

@Rule
@JvmField
val lGrantPermissionRule: GrantPermissionRule = GrantPermissionRule.grant(Manifest.permission.ACCESS_FINE_LOCATION)

关于android - Espresso android - IllegalStateException : UiAutomationService android.accessibilityservice.IAccessibilityServiceClient 已经注册,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66881200/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com