# Error:Failed to resolve: junit:junit:4.12

**URL:** <https://discuss.gradle.org/t/error-failed-to-resolve-junit-junit-4-12/21847>\
**Category:** Help/Discuss\
**Tags:** plugins\
**Created:** [March 6, 2017, 7:07am UTC](https://discuss.gradle.org/t/error-failed-to-resolve-junit-junit-4-12/21847 "2017-03-06T07:07:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shoaibhaseeb](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Shoaibhaseeb](https://discuss.gradle.org/u/Shoaibhaseeb)\
**Post date:** [March 6, 2017, 7:07am UTC](https://discuss.gradle.org/t/error-failed-to-resolve-junit-junit-4-12/21847/1 "2017-03-06T07:07:53Z")

</div>

Hi everyone am new to Gradle .I am using studio 2.3. Gradle version 3.3, Android plug-in Version 2.3.0. I have tried alot to resolve this problem but couldn’t find a way out kindly help me to resolve this issue.I have already gone through the relevant issues on this forum.

---

<div class="post-metadata">

**Author:** ![staffanf](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/staffanf/32/6017_2.png) [@staffanf](https://discuss.gradle.org/u/staffanf)\
**Post date:** [March 6, 2017, 11:53am UTC](https://discuss.gradle.org/t/error-failed-to-resolve-junit-junit-4-12/21847/2 "2017-03-06T11:53:36Z")

</div>

Start by posting the relevant parts of your build.gradle (s) and specific error messages. Your error description is to short to do anything with.  
Generally this should work for a normal java plugin:

```
apply plugin: 'java'
repositories {
  jcenter()
}
dependencies {
  testCompile 'junit:junit:4.12'
}
```
