名为“testCompile”的配置与该名称已存在无法添加作为配置 [英] Cannot add a configuration with name 'testCompile' as a configuration with that name already exists

查看:1604
本文介绍了名为“testCompile”的配置与该名称已存在无法添加作为配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新到摇篮插件1.1.0我一直得到以下错误

When updating to gradle plugin 1.1.0 I kept getting the following error

Cannot add a configuration with name 'testCompile' as a configuration with that name already exists

我也使用来自这里,v0.14.0的Robolectric摇篮插件。

I am also using the Robolectric gradle plugin from here, v0.14.0.

新摇篮1.1.0插件添加额外的单元测试的支持,所以我怀疑的摇篮和Robolectric插件是作战使用的testCompile,虽然我不知道如何解决这个问题。

The new gradle 1.1.0 plugin adds additional unit test support, so I suspect the gradle and Robolectric plugins are battling for use of 'testCompile,' though I'm not sure how to resolve this.

推荐答案

看起来像人精了,在Robolectric已经更新了他们的插件来解决这个问题。

Looks like the fine people over at Robolectric have updated their plugin to resolve the issue.

使用 Robolectric插件V1.0.0 你将能够更新插件的摇篮,也是运行Robolectric测试。

Use Robolectric Plugin v1.0.0 and you will be able to update gradle plugin and also run your Robolectric tests.

下面是如果你有兴趣进一步的信息拉入请求的讨论:

Here is the discussion on the pull request if you are interested in further information:

https://github.com/robolectric/robolectric-gradle-plugin/问题/ 128

这篇关于名为“testCompile”的配置与该名称已存在无法添加作为配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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