![]() ![]() ![]() ![]() The question that is set as answer works. 5 years, 7 months ago If you just delete the espresso dependency you can't test your app anymore so this solution is clearly not working. while enforcing v 2.0.1 works, too (whatever, both versions need to be forced to be identical). 6 years, 1 month ago it explicitly tells Gradle which version shall be compiled (no matter which version number the dependencies state). I hope this thoughts will help somebody to realise what exactly is happening here and how things work (not just copy paste some code) :).ģ years, 6 months ago Related Topics gradle android-studio google-cloud-messaging adle android-gradle-plugin Comments 6 years, 2 months ago It might be useful to explain this snippet. ![]() I personally found that Espresso Contrib and Espresso Intents also use :jsr305. So in order to use this approach you will need to exclude the same group from all project dependencies, who depend on :jsr305. There is an answer from (and couple of other people) who suggests to exclude the same dependency for espresso, which should work by the same way, but if the project has some other dependencies who depend on the same library (:jsr305), again we will have the same issue. Basically it will align the versions of this library inside the whole project. The accepted answer is one way of fixing the issue, because it will just apply some strategy for the problematic dependency (:jsr305) and it will resolve the problem around the project, using some version of this dependency. I am new to Android and not able to find what is this error. Resolved versions for app (1.3.9) and test app (2.0.1) differ. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:23.4.0'Ĭompile ':constraint-layout:1.0.0-alpha1'Ĭompile ':play-services-gcm:9.0.0'ĪndroidTestCompile '.espresso:espresso-core:2.2.2'ĪndroidTestCompile ':runner:0.5'ĪndroidTestCompile ':support-annotations:23.4.0'Ĭompile project(path: ':backend', configuration: 'android-endpoints')Įrror:Conflict with dependency ':jsr305'. TestInstrumentationRunner ".AndroidJUnitRunner" I created a new project in Android Studio 2.2 Preview 1 with Android App and Backend module with Google Messaging. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |