问题: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即可。
本文介绍了如何解决Gradle中关于'compile'配置过时的问题,提供了具体的修改方法,并解释了为何需要进行这样的更改。
1230

被折叠的 条评论
为什么被折叠?



