Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to solve gradle sync failed after 'Add basic Android instrumented and unit tests' #2378

Closed
chaehwanli opened this issue Aug 1, 2021 · 1 comment · Fixed by #2380
Closed

Comments

@chaehwanli
Copy link

Hello

I got gradle sync fail with 'Add basic Android instrumented and unit tests'(#2360).

This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.

I think that it is caused with below.

build.gradle

classpath 'com.android.tools.build:gradle:4.2.1'

the downgrading of gradle version is needed but I'm not sure it is proper...

classpath 'com.android.tools.build:gradle:4.1.2'

Regards

TimvdLippe added a commit that referenced this issue Aug 2, 2021
The newer version is only compatible with new versions of
IntelliJ/Android Studio. To ensure that older versions of IntelliJ can
still open this project, we should downgrade our version for now.

This Gradle plugin version supports IntelliJ 2020.3 and newer.

Fixes #2378
@TimvdLippe
Copy link
Contributor

Yes, I ran into the same issue. Fix is up at #2380 Apologies for the breakage!

TimvdLippe added a commit that referenced this issue Aug 2, 2021
The newer version is only compatible with new versions of
IntelliJ/Android Studio. To ensure that older versions of IntelliJ can
still open this project, we should downgrade our version for now.

This Gradle plugin version supports IntelliJ 2020.3 and newer.

Fixes #2378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants