Skip to content

InstrumentationRegistry is deprecated #82

Closed
@XY-quantum

Description

@XY-quantum

In the line 25 of ExampleInstrumentedTest.kt file, val appContext = InstrumentationRegistry.getTargetContext() should be replaced by val appContext = InstrumentationRegistry.getInstrumentation().getTargetContext() cause of the 'InstrumentationRegistry' is deprecated in Java, otherwise, the gradle cannot be built.

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