Android更新及gradle3.0问题

问题:Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

It will be removed at the end of 2018.

解决方案:将gradle.app中的dependence改为

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

即可

原因:经查看日志可得,compile以不再支持,所以引用implement即可。

你可能感兴趣的:(安卓开发(Android))