We just upgraded to Kotlin `2.0.22` for our Androi...
# android
l
We just upgraded to Kotlin
2.0.22
for our Android project. Made sure that the AGP plugin was latest as well at
8.7.1
. When running a build, it looks to also be running a lint task called
lintVitalAnalyzeRelease
when generating an apk for our release builds. We are seeing a block of warnings that look like:
Copy code
WARNING: Missing analysis API method org/jetbrains/kotlin/analysis/api/lifetime/KaDefaultLifetimeTokenProvider$Companion#getService(Lcom/intellij/openapi/project/Project;)Lorg/jetbrains/kotlin/analysis/api/lifetime/KaDefaultLifetimeTokenProvider;
WARNING: Missing analysis API method org/jetbrains/kotlin/analysis/api/lifetime/KaDefaultLifetimeTokenProvider#getDefaultLifetimeTokenFactory()Lorg/jetbrains/kotlin/analysis/api/lifetime/KaLifetimeTokenFactory;
WARNING: Missing analysis API method org/jetbrains/kotlin/analysis/api/session/KaSessionProvider#getAnalysisSession(Lorg/jetbrains/kotlin/psi/KtElement;Lorg/jetbrains/kotlin/analysis/api/lifetime/KaLifetimeTokenFactory;)Lorg/jetbrains/kotlin/analysis/api/KaSession;
With many more warning below it. I tried using the new
Copy code
android.lint.useK2Uast=true
but that had no effect. Has anyone seen this before? Searching around on Google hasn't yielded me any results and am hesitant to file a bug report since i think this may be a config issue on my side possibly? If I should direct this to #C19FD9681 or the gradle slack community, let me know. Thanks!
waving from afar right 1
s
I think this should be targeted towards the Android Gradle Plugin (thus Android Lint) developers? Try to open an issue on Google Issue Tracker for this. It's either that, or a problem with the Kotlin Analysis API.
228 Views