android studio Could not find any version that matches com.android.support:appcompat-v7:29.+.

今天第一次实验Android studio创建安卓项目,报错Could not find any version that matches com.android.support:appcompat-v7:29.+,最后解决了,将解决方法写下来:
1,找到下面这个文件
android studio Could not find any version that matches com.android.support:appcompat-v7:29.+._第1张图片

2:将dependiences去掉.29,变成这样

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:+'
}

android studio Could not find any version that matches com.android.support:appcompat-v7:29.+._第2张图片

3.重新运行Android项目,运行成功
android studio Could not find any version that matches com.android.support:appcompat-v7:29.+._第3张图片

你可能感兴趣的:(Android)