Contents of articles
1、 2. Solutions
1、 Error information
Clone a piece of code from GitHub. The following error occurs when compiling;
Download https://services.gradle.org/distributions/gradle-6.7.1-bin.zip (102.84 MB)
Download https://services.gradle.org/distributions/gradle-6.7.1-bin.zip finished succeeded, took 1 m 55 s 666 ms
Starting Gradle Daemon...
Gradle Daemon started in 4 s 99 ms
> Task :prepareKotlinBuildScriptModel UP-TO-DATE
AGPBI: {"kind":"warning","text":"Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.\nThis repository is deprecated and it will be shut down in the future.\nSee http://developer.android.com/r/tools/jcenter-end-of-service for more information.\nCurrently detected usages in: root project 'Plugin_Hook', project ':app'","sources":[{}]}
FAILURE: Build failed with an exception.
* What went wrong:
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.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
com.intellij.openapi.externalSystem.model.ExternalSystemException: 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.
at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:273)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:131)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:56)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:79)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner$ActionRunningListener.runAction(ClientProvidedPhasedActionRunner.java:120)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner$ActionRunningListener.run(ClientProvidedPhasedActionRunner.java:110)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner$ActionRunningListener.buildFinished(ClientProvidedPhasedActionRunner.java:104)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.lang.Thread.run(Thread.java:748)
* Get more help at https://help.gradle.org
BUILD FAILED in 8m 33s
2、 Solutions
Core error information:
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.
The current Android support plug-in can’t open the project. Upgrade Android studio to
four point two
four point two
Version 4.2 or above;
Read More:
- The problem of MAC switching JDK version and RN Android JDK version leads to compilation failure. Solve it
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Solution to the expiration and unavailability of Android studio plug-in plugin
- Android Studio – automatically opens the latest project every time you open as
- Solve the problem that the version of less is too high
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- [error record] kotlin code compilation error when Android studio compiles (process @ nonnull parameter when upgrading support library)
- Android studio error Error:Could not Determine java version from ‘9.0.4’
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- android studio:Error inflating class android.support.v4.widget.SwipeRefreshLayout
- Android studio upgrade 4.1 plug-in error
- Plugin Error: Plugin “Android Code Generator“ is incompatible (supported only in IntelliJ IDEA)
- Android Studio | Failed to find target with hash string ‘android-26’ in: D:\Android\sdk
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- Mac Upgrade pip WARNING: You are using pip version 21.1.1; however, version 21.1.3 is available. You s
- How to use high version OpenGL under Windows