Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot solve 'This version of the Android Support plugin for IntelliJ IDEA cannot open this project, please retry with version 4.1 or newer.'

I'm using:

com.android.tools.build:gradle:4.1.0

and wrapper:

distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip

But still on all syncs IntelliJ IDEA gives me: enter image description here

I've once found a workaround, using an old gradle version and older build tools it was working. But this cannot be "true", anyone else facing such issues?

like image 553
cV2 Avatar asked Jan 25 '21 09:01

cV2


1 Answers

IntelliJ IDEA 2020.3 does not support Android gradle Plugin 4.1 version yet. You have two options: either downgrade AGP and use IDEA: com.android.tools.build:gradle:4.0.2

or switch to Android Studio 4.1+

Android Plugin 4.1 will be available in IDEA starting from the very first EAP of 2021.1. version EAP should start this week.

like image 161
Andrey Avatar answered Sep 30 '22 06:09

Andrey