Build errors after Android Studio 3.2.1 upgrade

前端 未结 9 1386
我在风中等你
我在风中等你 2020-11-29 00:24

I am building a sample project from Udacity. This was working fine till now, but after upgrading to Android Studio 3.2.1, I am facing the build error below.

Gradle v

9条回答
  •  天命终不由人
    2020-11-29 00:58

    add google() on your build script > repositories add google on allprojects > repositories

    use implementation as replacement of compile keyword, also on your filetree.

    EX.

    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
    
        implementation 'com.android.support:appcompat-v7:25.3.1'
        implementation 'com.android.support:design:25.3.1'
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        implementation 'com.android.support:support-v4:25.3.1'
    

提交回复
热议问题