0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Android studioにて、プロジェクト立ち上げ後にビルドされない

Posted at

Java : 22.0.1
Gradle : 8-8-rc-1
Android studio : iguana 2024.2.1 Patch1

Android studioでプロジェクトを立ち上げたら、以下のエラーが出てきた場合

Unable to load class 'org.slf4j.LoggerFactory'
org.slf4j.LoggerFactory

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.


対処法として
1.「File」から「Project Structure」

2.「Gradle version」を最新のものへ
 ※以下画像は2024/4/28時点のものです。
 バージョンはインストール済みのjavaと合うようにしてください
(例えば、Java 22.0.1ならGradle 8-8-rc-1)

3.同期が終わるまで待機

スクリーンショット (1438).png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?