答案 0 :(得分:0)
由于build.gradle(应用程序级别)中Compile关键字的折旧而发生此错误
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018.
其解决方案是
只需在build.gradle(应用级别)中将 compile 关键字替换为实施或 api
&
重建项目
如果重建后未解决,请重新启动Android Studio。