I am using intelliJ 2022.1.1 built on May 2022 but...
# intellij
a
I am using intelliJ 2022.1.1 built on May 2022 but still getting
Copy code
This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.2.1 or newer.
How do I solve this without switching to Android Studio?
1
m
Either downgrade your AGP version or switch to Android Studio, there's no simple answer
j
Or try out if the EAP release of Intellij has upgraded the Android Studio components if you are more adventurous. Intellij is always a bit behind with Android support so to use it you need to use slightly older AGP versions until the Android Studio changes have landed in a new release.
👍 1
m
Ah yes, good callout for EAPs
j
the new EAP works with 7.2.1?
last time I tried it was not working
m
Not sure at all, I'm using old AGPs.. but worth a try...
a
EAP isn't working as well, it hasn't been working for a long time now😔
j
Is it possible for you to downgrade the Android Gradle Plugin to a version which works in both IDEs? Or do you depend on certain newer features? IntelliJ will always be behind since it takes time to port changes of Android Studio to IntelliJ.
a
I want to use compose, it is dependant on agp at least 7
j
I am working in IntelliJ with AGP 7.0.4. So that one should work.
a
Let me try to downgrade to 7.0.4 then. Will report back
o
please retry with version 2021.2.1 or newer.
IDEA 2022.2 EAP3 now includes
Android Support
plugin 2021.2.1 (which is Chipmunk, the current stable AS release) https://youtrack.jetbrains.com/articles/IDEA-A-211/IntelliJ-IDEA-20222-EAP-3-222288914-build-Release-Notes 2021.2.1 can work with AGP versions up to 7.2 - and according to your error message should be enough. https://developer.android.com/studio/releases/gradle-plugin?buildsystem=ndk-build#agp-studio-compatibility