添加 retrofit2报nable to resolve dependency for ':example@debugAndroidTest/compileClasspath': Could not

简介: 添加 retrofit2报nable to resolve dependency for ':example@debugAndroidTest/compileClasspath': Could not

在添加retrofit2 依赖 时报了如下错误


Unable to resolve dependency for ‘:example@debugAndroidTest/compileClasspath’: Could not resolve com.squareup.retrofit2:retrofit:2.1.0.


后来在github 上查了一下如下


0a2653c851af460fa595bd959398a8f1.png


翻译如下


2d65d23f6d4748949b924e4057485923.png


修改依赖如下:


api ' com.squareup.retrofit2:retrofit:2.3.0'


即可


相关文章
|
安全 Cloud Native Go
解决Gradle依赖问题:不安全协议的处理策略Could not resolve all dependencies for configuration ‘:detachedConfiguration9
解决Gradle依赖问题:不安全协议的处理策略Could not resolve all dependencies for configuration ‘:detachedConfiguration9
1035 0
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found:
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found
|
4月前
|
Java Maven
@Date不管用怎么办,想少写get和setter方法,reate方法创建不了怎么办,Cannot resolve method ‘setxxx‘ in ‘xxx‘不管用怎么办,到Maven创建插件
@Date不管用怎么办,想少写get和setter方法,reate方法创建不了怎么办,Cannot resolve method ‘setxxx‘ in ‘xxx‘不管用怎么办,到Maven创建插件
|
6月前
|
缓存
okhttp Interceptor
okhttp Interceptor
63 1
|
6月前
|
Android开发
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.suppor
43 1
|
11月前
|
JavaScript
Vue err:This dependency was not found
Vue err:This dependency was not found
|
缓存
Retrofit配置及各情况处理
Retrofit配置及各情况处理
212 0
|
Java Maven
Can not resolve org.springframework:spring-test:5.1.8.RELEASE
Can not resolve org.springframework:spring-test:5.1.8.RELEASE
175 0
|
Java Maven
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compil
maven-compliler-plugin版本与maven版本不一致,Maven版本太低或maven-compiler-plugin版本过高
3866 0
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compil
|
Java Maven
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co
778 0
[ERROR] Failed to execute goal on project springcloud: Could not resolve dependencies for project co