【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法

时间:2024-03-21 17:44:35

使用Android studio v3.1版新建project之后
gradle会报错“Unable to resolve dependency for ‘:[email protected]/compileClasspath’: Could not find any version that matches com.android.support:appcompat-v**????*.+.”。
【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法
同时Activity.xml里Desige界面也无法显示
【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法
解决办法

①、查看当前Android SDK Tools版本(File→Appearance&Behavior→System Settings→Updates)

【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法
②、如上图Android SDK Tools版本为26.1.1,回到主程序界面,打开build.gradle里implementation ‘com.android.support:appcompat-v7:29.+’,后面的v7:29改成v7:26。

【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法
③、重启软件,一切正常
【新手开发笔记】Could not find any version that matches com.android.support:appcompat-v*:**.+. 错误解决办法