1. Problem occurs
Additional error when creating new project: (using Android Studio Flamingo | 2022.2.1 Patch 2)
Unable to load class 'org.slf4j.LoggerFactory'.
2. Problem Analysis
It is meaningless to directly analyze the errors represented by the problem itself, here is a little... (Try to track down the direct errors, and finally fail)
In the gradle-wrapper.properties:
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
更改为
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-all.zip
As a result, the problem is solved.
(Many inexplicable problems can be solved by the above changes)