Android studio编译报错:ERROR: Unable to resolve dependency for ':app@playDebug/compileClasspath': Could

在添加新的Maven仓库后,Android Studio出现编译错误,提示无法解析依赖。尽管检查确认AS的HTTP代理已关闭且gradle.properties中无代理设置,但实际问题是由于第三方代理软件开启导致的。问题解决在于关闭该代理软件,确保访问Google的v4包地址而非代理地址。遇到此类错误时,应全面检查所有代理设置。
摘要由CSDN通过智能技术生成

今天加了一个maven仓库,然后再编译的时候,报错:

ERROR: Unable to resolve dependency for ':app@playDebug/compileClasspath': Could not resolve com.android.support:support-v4:[22,23).
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@playDebugAndroidTest/compileClasspath': Could not resolve com.android.support:support-v4:[22,23).
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@playDebugUnitTest/compileClasspath': Could not resolve com.android.support:support-v4:[22,23).
Show Details
Affected Modules: app


ERROR: Unable to resolve dependency for ':app@playRelease/compileClasspath': Could not resolve com.android.support:support-v4:[22,23).
Show Details
Affected Modules: app

查了资料都说是因为as开了代理。仔细检查了,setting->System Settings->HTTP Proxy

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值