I am facing a very weird problem . In my project I am retrofit as a network library . SO for JSON serialisation and deserialisation I am using gson-converter library "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
// rootProject.retrofitVersion = '2.3.0'
after sync I got this error which failed gradle to build the app
Error:Execution failed for task ':app:preMockDebugAndroidTestBuild'. Conflict with dependency 'com.google.code.gson:gson' in project ':app'. Resolved versions for app (2.7) and test app (2.8.0) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
I have used retrofit and gson many times in past but never face this sort of error . Please some one help me . I have searched a lot , non of the solution works