Fixed
Status Update
Comments
be...@google.com <be...@google.com> #2
What version of kotlin are you using?
be...@google.com <be...@google.com> #3
1.7.10
be...@google.com <be...@google.com> #6
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Iguana | 2023.2.1 Canary 6
- Android Gradle Plugin 8.3.0-alpha06
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ju...@google.com <ju...@google.com> #7
Update: the fix will include a new extension point in the Kotlin plugin (see Alex's commit https://github.com/JetBrains/kotlin/commit/70bc40283ac68fe64ee3d4828913f1986b676c7a ) and its implementation in Android Studio.
Currently a module's .iml file is needed to enlarge resolve scopes with light classes. For a newly created project, resolving may happen before the .iml file is there, which is why we see unresolved R. After the .iml file is created, resolving works as expected.
Alex's commit adds a new extension point in Kotlin to enlarge scopes based on modules instead of their .iml files. Once the new API is in, we'll implement it in Android Studio.
Currently a module's .iml file is needed to enlarge resolve scopes with light classes. For a newly created project, resolving may happen before the .iml file is there, which is why we see unresolved R. After the .iml file is created, resolving works as expected.
Alex's commit adds a new extension point in Kotlin to enlarge scopes based on modules instead of their .iml files. Once the new API is in, we'll implement it in Android Studio.
be...@google.com <be...@google.com> #8
Reassigning, since you already have the CL started.
ju...@google.com <ju...@google.com> #9
Fixes merged, will be in Android Studio 3.3 RC3 and 3.4 Beta 1
Description
As before, forcing PSI to refresh one way or another "fixes" the problem.