When running Android studio for the first time, a warning is issued
The translation is:
We recommend using a new Android Gradle plugin to use compileSdk=32
The Android Gradle plugin (7.0.4) has been tested with compileSdk=31
This warning can be suppressed by adding the code android.suppressUnsupportedCompileSdk=32 in the project's gradle.properties
This build will continue to build, but it is strongly recommended that you update your project to use the new Android Gradle plugin which has been tested with compileSdk=32
method one
Just download a new Android Gradle plugin to use compileSdk = 32 as he said.
Method Two
Suppress this warning, find the gradle.properties in this project, add android.suppressUnsupportedCompileSdk=32 in this file
this line of code.
method three
Since he has passed the test of compileSdk=31, then use compileSdk=31
Click on the blue app, or find the build.gradle file in the app file,
Bundle
compileSdk 32 changed to compileSdk 31
targetSdk 32 changed to targetSdk 31
Just re-run it.
This article is for reference only, don't spray if you don't like it.