hi! i’m trying to use intellij idea in my KMM proj...
# intellij
k
hi! i’m trying to use intellij idea in my KMM project but I’m getting this error
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2020.3.1 or newer.
. I’m using IntelliJ IDEA 2021.2.2 and Android Studio Arctic Fox 2020.3.1 Patch 2. Any way I can get this to work or am I stuck with AS?
m
You're stuck with AS
😢 1
r
IntelliJ's Android plugin lags behind AS itself. The other option is to downgrade the version of
com.android.tools.build:gradle
in your build. Follow https://youtrack.jetbrains.com/issue/IDEA-275522.
k
that’s sad but thanks for your replies!
m
We're stuck on 4.2.2 for this exact reason 😕
r
The underlying reason is that Google is the author of the plugin, and they write it for AS. JetBrains then periodically does the work of merging Google's work into the IDEA plugin. It's an unfortunate but understandable situation. One can only hope that Google will eventually abandon AS and just point everyone to IDEA, but I suspect the branding/marketing benefit of having their own IDE is too great.
m
I wish AS and IDEA could use the same plugin jar, just disable profiler, database viewer, preview, etc... for intelliJ. That might be a long way though...