Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InstrumentationRegistry is deprecated #82

Closed
XY-quantum opened this issue Oct 31, 2022 · 1 comment
Closed

InstrumentationRegistry is deprecated #82

XY-quantum opened this issue Oct 31, 2022 · 1 comment

Comments

@XY-quantum
Copy link

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.

@ErikBjare
Copy link
Member

Will be fixed by: #85 / #88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants