当前位置: 首页 > 工具软件 > squareup > 使用案例 >

Unable to resolve dependency for ':okgo@debug/compileClasspath': Could not resolve com.squareup.okh

蔡晨
2023-12-01

 Unable to resolve dependency for ':okgo@debug/compileClasspath': Could not resolve com.squareup.okhttp3:okhttp:3.9.1. Open File Show Details


解决办法:

1.检查gradle中是否有

allprojects {
    repositories {
        google()
        jcenter()
    }
}
2. Go to `File->Settings->Build, Execution, Deployment->Gradle->Uncheck Offline work option.`

设置中的Offline work 不能选中

 类似资料: