Skip to content

NoClassDefFoundError: androidx.test.internal.util.Checks when using ActivityScenarioRule 1.7.0 with androidx.test:runner:1.4.0 #2478

@shivaspeaks

Description

@shivaspeaks

After migrating from the deprecated ActivityTestRule to the modern ActivityScenarioRule in grpc-java (https://github.com/grpc/grpc-java/pull/12689/changes), we are seeing a consistent runtime crash across all Android API levels (24–30) during instrumentation tests. The crash is a NoClassDefFoundError for androidx.test.internal.util.Checks which occurs when the test orchestration attempts to resume the BootstrapActivity.

Environment (check our build.gradle and toml file)
AndroidX Test Core: 1.7.0
AndroidX Test Rules: 1.7.0
AndroidX Test Runner: 1.4.0
AndroidX Test Ext JUnit: 1.3.0

Error: https://firebase.corp.google.com/u/0/project/grpc-testing/testlab/histories/bh.6e2cfdde264f9eb3/matrices/8610605656647595667/details?stepId=bs.f6d42ee26cd13fee&tabId=issues&testCaseId=2

CC: @ejona86, @kannanjgithub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions