https://kotlinlang.org logo
#intellij
Title
# intellij
m

mkrussel

07/18/2022, 6:59 PM
I just installed intellij 2022.1.3 CE to use instead of Android Studio to see if it handled KMM better. When opening my project I get
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.1.1 or newer.
I assume 2022.1.3 is newer than 2021.1.1 Anyone know what I need to do to resolve this, or can I ignore the import error.
m

mkrussel

07/18/2022, 7:03 PM
Yeah, I was using Android Studio BumbleBee before.
m

mbonnin

07/18/2022, 7:04 PM
That's AGP 7.1.x, right?
m

mkrussel

07/18/2022, 7:05 PM
Yes. 7.1.3
m

mbonnin

07/18/2022, 7:06 PM
Maybe try the IntelliJ EAP?
m

mkrussel

07/18/2022, 7:07 PM
I tried an EAP earlier but it had serious problems with android and Multiplatform (same reason I didn't upgrade to Chipmunk). I'm going to try a fresh install, maybe it's having problems opening the project that was created by Android Studio.
m

mkrussel

07/18/2022, 7:11 PM
looks like it. The released only supported Arctic Fox. I thought I only needed the EAP for Chipmunk. Google needs to fix the error message so it works nicely with both tools.
r

Racka N

07/19/2022, 6:42 AM
Stable Intellij 2022.1.3 does not support > 7.0.4 AGP, either downgrade to 7.0.4 (and give up API 32 support) or use EAP/AS Dolphin (which also has the same issues with KMP). Though a somewhat similar issue I had with the unresolved references was fixed by disabling gradle configuration cache and re importing a fresh git clone of the project. Now it works on Intellij 2022.2 Beta, AS Chipmunk & Dolphin with AGP 7.2.1 and Kotlin Gradle Plugin 7.4.4. Only thing that remains broken is auto imports for expect/actual declarations inside commonMain/Test (they work in all other sources).