Could not find method compile() for arguments [com.google.code.gson:gson:2.8.5]
来源:3-2 新建项目与数据库配置

慕慕3465587
2022-03-02
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method compile() for arguments [com.google.code.gson:gson:2.8.5] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
写回答
1回答
-
新版本idea需要将 compile 换成
implementation
即可。
012022-03-02
相似问题