更新到Android Studio 3.2时发生Gradle错误 [英] Gradle error when Update to Android studio 3.2

查看:185
本文介绍了更新到Android Studio 3.2时发生Gradle错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Android Studio版本更新为3.2.现在我的项目面临以下错误-com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;

I updated my Android Studio version to 3.2. Now I am facing following error for my project - com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;

目前,我正在使用Gradle 4.6版. 发出链接 https://github.com/novoda/bintray-release/issues/177表示将gradle版本降级为4.4,但Android Studio 3.2的最低支持版本为4.6.

Currently I am using gradle version 4.6. Issue link https://github.com/novoda/bintray-release/issues/177 says to downgrade gradle version to 4.4 but minimum supported version for Android Studio 3.2 is 4.6.

如何解决此错误.

推荐答案

我通过将build.gradle文件中插件的顺序更改为

I solved the same error by changing the order of the plugins in your build.gradle file to :

//has to be BEFORE 'com.android.library'
apply plugin: 'com.novoda.bintray-release' 
apply plugin: 'com.android.library'

解决方案在这里说明-看看:问题III .

The solution is stated here - Take a look at : Issue III.

distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip保留在gradle-wrapper.properties文件中.

While keeping the distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip in my gradle-wrapper.properties file.

这篇关于更新到Android Studio 3.2时发生Gradle错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆