原文:Error:(23, 0) Could not find method implementation() for arguments [directory 'libs'] on object of t

Error: , Could not find method implementation for arguments com.android.support:appcompat v : . . on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.Please i ...

2019-11-18 22:40 0 434 推薦指數:

查看詳情

解決Gradle報錯Could not find method api() for arguments....

老項目用的Gradle引入依賴用的compile關鍵詞,升級Gradle 7.x版本后,這個關鍵詞被啟用了。 查了下文檔,如果項目的Jar包要對外暴露,就用api,如果引用的jar包只有本項目自己用,就用implementation。 核心,公共模塊的jar包引用改成了api,但是報錯 ...

Sun Dec 05 19:11:00 CST 2021 0 7770
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM