com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set; 问题

问题

问题描述如下:


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':base'.
> Failed to notify project evaluation listener.
   > com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 2s
ERROR: Cause: com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;

 

原因

1. issues

据说是novoda 需要特定的版本,

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

2. 我自己的gradle 版本是,3.2.1,所以导致gralde-4.6.all.zip 不符合novoda 0.8.1 版本所要求的Gradle 版本;

3. 瞎搞搞,直接改为gradle-4.4-all.zip,卧槽,居然报下面的错误,


FAILURE: Build failed with an exception.

* Where:
Build file '/Users/dovsnier/Documents/Workspace/toolchainkit/app/build.gradle' line: 1

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
   > Minimum supported Gradle version is 4.6. Current version is 4.4. If using the gradle wrapper, try editing the distributionUrl in /Users/dovsnier/Documents/Workspace/toolchainkit/gradle/wrapper/gradle-wrapper.properties to gradle-4.6-all.zip

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

CONFIGURE FAILED in 59s
ERROR: Minimum supported Gradle version is 4.6. Current version is 4.4.

Please fix the project's Gradle settings.
Fix Gradle wrapper and re-import project
Gradle settings

4. 嗯,没办法,改改gradle 插件版本吧。 // gradle 4.4 插件版本对应的为3.1.0+

5. 哟呵,居然跑起来通过了;

:app:mergeDebugResources
:common:generateDebugRFile
:base:generateDebugSources
:support:generateDebugRFile
:utils:generateDebugSources
:support:generateDebugSources
:common:generateDebugSources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources

BUILD SUCCESSFUL in 4s
53 actionable tasks: 53 executed

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值