天天看点

Android Studio 3.2 新建项目编译不过问题

Android Studio 3.2新建一个空项目,什么也没加就编译不过,出现如下问题:

Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.

根据网上一通折腾也没有解决,后来把29改成28就编译过了。

app/build.gradle

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

为了确实不是中间乱改起作用,我又新建一个空项目,只改29/28,确实只需要这个修改。

原因不明,希望能给大家节约点时间。