How to resolve duplicated gradle Dependency issues

后端 未结 4 1644
情话喂你
情话喂你 2021-02-04 01:33

I have tried to test my code with robolectric. Problem is that it has duplicated References. e.g.

java.lang.RuntimeException: java.lang.RuntimeException: Duplica         


        
4条回答
  •  遥遥无期
    2021-02-04 02:07

    I've encountered the same issue and the thing that helped me was that I had defined the Roboelectric dependency twice in Gradle file one with androidTestImplementation and the other with testImplementation so when I removed the first part problem solved!!!

提交回复
热议问题