Encountered this problem, as a result, no blog is the right way to deal with it
Error reporting reason
Mismatched configuration files are generated after directly opening the project or importing the project with an incorrect JDK path
Solution
Delete the file with the suffix “. IML” under the. Idea path, and then set the correct JDK path. A JDK is available in the Android studio directory. Then file – & gt; Sync project with gradle files, the IDE will regenerate a matching configuration file and solve the problem.
Read More:
- [error record] invalid gradle JDK configuration found
- android studio Error Gradle project sync failed. Please fix your project and try again
- Android studio “sync project with gradle files” button disappears
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- JDK upgrade 17 project reports an error java.lang.reflect.inaccessibleobjectexception
- Android project error Error:found an Invalid color. Solution
- Android studio reports an error when building AAR for unity
- Android Studio Series: after Android studio is opened, the project window will not be displayed.
- How to Fix Android Error:This Gradle plugin requires Studio 3.0 minimum
- Android network request framework okhttputils reports an error (okhttp3 cannot be found)
- Bug001: error in gradle configuration environment variable: ERROR:JAVA_ Home is set to an invalid directory!
- Android Studio – add configuration for Android studio
- Junit4 unit test reports an error invalid project specified
- Android studio reported an error in the release package: Lint found fatal errors while assembling a release target
- Android studio compilation error: style attribute ‘@ android:attr/windowEnterAnimation ‘not found the ultimate solution
- Android studio AAPT: error: attribute android:requestLegacyExternalStorage not found.
- Solve gradle project refresh failed
- Import Android project Error:Internal error : org.gradle.tooling .BuildException: Could not execute build…