0

Well i am having trouble recently while importing the android directory of a react native project to android studio.

It used to work well before but now its throwing 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.

any way to fix this?

Thanks in advance

1 Answer 1

1

In Android view under Gradle Scrips, change two files, then re-sync gradle.

  1. build.grade (Project): classpath("com.android.tools.build:gradle:4.0.1")

  2. gradle-wrapper.properties: distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip

I just encountered the same issue and solved it using the above fix. You may find this thread useful as well: Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.