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

Warning from Android Studio #3709

Closed
AndreaBonatti opened this issue Mar 21, 2022 · 1 comment
Closed

Warning from Android Studio #3709

AndreaBonatti opened this issue Mar 21, 2022 · 1 comment

Comments

@AndreaBonatti
Copy link

Hello!
https://developer.android.com/courses/pathways/android-basics-kotlin-unit-4-pathway-2#codelab-https://developer.android.com/codelabs/android-basics-kotlin-test-network-request
By following this linked tutorial for Kotlin made by Google i found a new warning when i try execute the unit test for the API.
The first image is the code that create the warning.
retrofit_2
The second image is the warning.
retrofit_1
I think that you can reproduce the warning by following the tutorial.
The info of Android Studio tha was used are:
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: idea.plugin.protoeditor (2.3.1), Dart (211.7808), wu.seal.tool.jsontokotlin (3.7.2), com.thoughtworks.gauge (211.6693.111), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), io.flutter (65.2.2), org.intellij.plugins.markdown (211.7142.37)

Have a nice day.

@JakeWharton
Copy link
Member

Thanks. Making this required reflective lookup lazy is tracked by #3448. On JDK 17 and newer we do not use reflection for this functionality.

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