android stdio Error Could not find com.android.tools common 25.2.2

  • Error:Could not find com.android.tools:common:25.2.2.

Searched in the following locations:

file:/D:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/common/25.2.2/common-25.2.2.pom

file:/D:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/common/25.2.2/common-25.2.2.jar

https://jcenter.bintray.com/com/android/tools/common/25.2.2/common-25.2.2.pom

https://jcenter.bintray.com/com/android/tools/common/25.2.2/common-25.2.2.jar

 

  • 打开 jcenter 地址,的确没有 25.2.2

 《android stdio Error Could not find com.android.tools common 25.2.2》

 

  • 查看本地都安装了那些版本

 《android stdio Error Could not find com.android.tools common 25.2.2》

 

 

 

  • 修改 gradle 版本为本地存在的版本

 

Gradle script

|

|

build.gradle

 《android stdio Error Could not find com.android.tools common 25.2.2》

 

  • 同步后编译,一些OK

 

    原文作者:b0b0
    原文地址: https://www.cnblogs.com/hbb0b0/p/10094705.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞