原文:Error:Could not find method google() for arguments [] on repository container

Error:Could not find method google for arguments on repository container. Consult IDE log for more details Help Show Log 修改gradle wrapper.properties中的值 修改为 ...

2018-04-11 10:24 0 9319 推荐指数:

查看详情

解决Gradle报错Could not find method api() for arguments....

老项目用的Gradle引入依赖用的compile关键词,升级Gradle 7.x版本后,这个关键词被启用了。 查了下文档,如果项目的Jar包要对外暴露,就用api,如果引用的jar包只有本项目自己用 ...

Sun Dec 05 19:11:00 CST 2021 0 7770
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM