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】
---------------------
初入,安卓坑,原因不明。。