Android Studio出现闪退

We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.4.2) was tested up to compileSdk = 33

This warning can be suppressed by adding
android.suppressUnsupportedCompileSdk=34
to this project’s gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34
Update Gradle property to suppress warning
Affected Modules: app

解决方法:

在文件项目的(gradle.properties(Project))加上android.suppressUnsupportedCompileSdk=34