导入新项目Gradle Android Studio cannot open this project, please retry with Android Studio 4.0 or newer

Gradle sync failed: This version of Android Studio cannot open this project, please retry with Android Studio 4.0 or newer. Consult IDE log for more details (Help | Show Log) (25 m 35 s 879 ms)

Translation: Sync failed: this version Android Studio cannot open this project, please use Android Studio 4.0 or newer to try again.
Solution
      Step 1: Change the classpath "com.android.tools.build:gradle:4.0" to your current Build version.
      Step 2: Change the original Delete the wrapper file in the gradle directory of the project, copy it from the project that has been run before, and then refactor it OK
       

Guess you like

Origin blog.csdn.net/shu_quan/article/details/109336621
Recommended