Android Studio - Error:Unable to load class 'org.slf4j.LoggerFactory'

前端 未结 2 1021
没有蜡笔的小新
没有蜡笔的小新 2021-01-12 14:31

I\'m new in the Android world. I opened studio Android 2.2 and, after creating a new project, I get this error message:

Failed to sync Gradle

相关标签:
2条回答
  • 2021-01-12 15:21

    I solve this by following steps

    1. download the newest version of gradle in this site: http://download.csdn.net/download/fallingwind/9604349

    2. replace folder "disk-label://android-studio/gradle" with the download file(unarchive first).

    3. restart AS

    4. if it doesn't work, you can change the environment path of gradle.exe

    0 讨论(0)
  • 2021-01-12 15:31

    Go to File-> Settings -> Expand Build, Execution, Deployment -> Select Build Tools -> Gradle -> Under Project Level Settings Select Use default gradle wrapper. Try Gradle build again and this worked for me.

    0 讨论(0)
提交回复
热议问题