问题
问题描述如下:
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