Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matc

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/u012748494/article/details/94970783

Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
Open File
Show Details


Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
Open File
Show Details


Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
Open File
Show Details


Unable to resolve dependency for ':app@release/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
Open File
Show Details


Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.
Open File
Show Details
 

解决;

1、网上试了各种办法不行

2、无非是引用的包无法匹配。

3、project structure ——>app   [property]-----【后续的其他几个有version 的保持一致】

选择特定的 sdk。  这里选择 8.1,   原因不明:之前9.1 都是可以的, 重装系统后,不行了。 反正这样能够编译ok;

4、注意gradle文件是否自动修改,如果没有同步修改, 还需要手动修改

【比如,我这里手动改为27】

---------------------

初入,安卓坑,原因不明。。

猜你喜欢

转载自blog.csdn.net/u012748494/article/details/94970783