核心,公共模块的jar包引用改成了api,但是报错了 A problem occurred evaluating project':inkyi-common'. >Couldnotfind methodapi()forarguments [org.springframework.boot:spring-boot-starter-web:2.6.1]onobjectof type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 意思就是说:没...
一、遇到问题 Unable to find method 'org.gradle.api.artifacts.result.ComponentSelectionReason.getDescription()Ljava/lang/String;'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependen...
修改办法,打开settings,gradle这里,它默认用的local选项,而且路径不对 改为第二个选项即可 然后重启
解决方法:回退到以前的gradle版本。 结论:和greendao不能很好兼容导致。看来升级gradle并不是完全无风险的。
安卓升级了gradle版本后就报这个错误,经查是引用了classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2',升级为classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'后,就不报这个错误了,所以有时候gradle编译报错是因为升级了新版的gradle后,引用的依赖包不配套导致的,升级引用最新版本后,就不会报错了,...
Unable to find method ‘org.gradle.api.tasks.TaskInputs.property(Ljava/lang/String;Ljava/lang/Object; 今天更新了gradle版本后出现的问题如下图: image.png 看这句 Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of ...
ERROR: Unable to find method 'org.gradle.api.artifacts.Configuration.isCanBeResolved()Z'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) ...
针对你提出的问题“could not find method compile() for arguments [directory 'libs'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.defaultdependencyhandler.”,我将从以下几个方面进行分析和解答: 1. 问题背景与上下文 这个问题通常出现在使用Gradle构建Android项目时,特别是在更新Gradle版...
编译(IDEA+Gradle)一个别人的工程,出现一个很奇怪的错误(其中***为模块的名字):Could not find method compile() for arguments [project ':***'] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. 百度了...
Could not find method compile() for arguments [com.github.kenglxn.QRGen:android:2.6.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler. Command ./gradlew failed with exit code 1 error Command failed with exit code 127. Environment OS: macOS 11.6 CPU...