This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer

前端 未结 12 1817
孤街浪徒
孤街浪徒 2020-12-14 13:42

This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer.

but my android studio version is 3.2.1 and there is no new up

相关标签:
12条回答
  • 2020-12-14 14:10

    It's a bit late, But easy and effective. Click on About Android Studio, Check the current version, Open build.graddle of Project and put it in front of the class path. e.g Your studio version is 3.5.2, then your classpath should be like that.

    classpath 'com.android.tools.build:gradle:3.5.2'
    
    0 讨论(0)
  • 2020-12-14 14:10

    I encounterd with this error and just decrease gradle version and android plugin version to 5.1.1 and 3.4.2 .Hope this is helpful for you.

    0 讨论(0)
  • 2020-12-14 14:13

    This issue causing due to using of newer version of gradle in the project. There is two options to resolve this,

    Option 1: Change gradle/wrapper/gradle-wrapper.properties file distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip

    Change project level gradle build.gradle file classpath("com.android.tools.build:gradle:3.3.2")

    Option 2: Update your Android Studio to newer version.(Highly recommended)

    Hope this is helpful.

    0 讨论(0)
  • 2020-12-14 14:14

    You would need to lower your gradle version and android plugin version, or you can download latest version from beta or canary update channels.

    To enable updates from other channels go to Help -> Check for Updates -> Congifure automatic updates and in that dialog select channel you want. After selecting check for update again and it will show you latest version.

    0 讨论(0)
  • 2020-12-14 14:14

    this issue occur for me after downgrade Java JDK, after upgrade JDK my problem resolved.

    0 讨论(0)
  • 2020-12-14 14:20

    After an update the Android Studio does not show the layout's design for some reason. I tried newer versions as well, but it did not work. So I decided to downgrade my IDE.

    When I opened my project, I got the same error. The solution was the following:

    1. Open the Project Structure.
    2. Select the Project field.
    3. Use the appropriate Android Plugin Version. You can copy it from a new project's structure.
    4. Change the Gradle version too what you need.
    5. OK.
    6. Find the gradle-wrapper.properties file and open it.
    7. Change the distributionUrl to that gradle version url what you saved in the Project Structure.

    Or if you don't mind, then you can update your AS.

    0 讨论(0)
提交回复
热议问题