IntelliJ Idea 2022.2 cannot resolve compose imports.
See original GitHub issueIdea 2022.2 doesn’t resolve compose imports with latest compose dev release.
Steps to reproduce:
- Use Idea 2022.2 to create Compose Multiplatform multiple platforms project Observe that compose imports are correctly resolved.
- Change gradle.properties versions to the following:
kotlin.version=1.7.10
agp.version=7.2.0
compose.version=1.2.0-alpha01-dev753
Observe that the imports are not correctly resolved
Additional notes:
- Compose imports are resolved correctly in Idea 2022.1.4
- Gradle builds are successful
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7
Top Results From Across the Web
2022.2.1-RC cannot resolve multiplatform compose imports
Use Idea 2022.2 to create Compose Multiplatform multiple platforms project. Observe that compose imports are correctly resolved.
Read more >Intellij doesn't prompt to import androidx.compose
I created a Kotlin multiplatform project. On a unresolvable symbol like "Modifier", I press ALT + ENTER, then Intellij prompts me to import...
Read more >New features in Android Studio Preview
2 platform update. Android Studio Flamingo Canary 1 includes the IntelliJ IDEA 2022.2 updates, which improve the IDE experience. For details on the...
Read more >Android Studio Release Updates
General fixes and features · Issue #211012777: lint. · Issue #197342475: Android Gradle Plugin 7.0+ and Android Tests issue: Cannot find resource: id...
Read more >IntelliJ IDEA Error – Cannot run program – No such file or ...
Navigate to the File Menu and go to Project Structure. Under the Project SDK section, make sure to add the new SDK you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it is technically an error for Gradle. This should disable the check:
It works with 1.7.10, because we are lucky that there weren’t incompatible changes.
Better to use the new compiler that officially supports the new Kotlin:
It is still unofficial, but it works. We are working on the official way to use different Kotlin. It will be similar to Jetpack Compose way
@serandel 2022.2.1 RC solved it for me as well. Thanks for giving me this hint I wasn’t aware there were preview builds outside of EAP. I’ll close this issue!