I have question about this error: Error:Execution failed for task ':app:preDefaultDebugAndroidTestBuild'. > Conflict with dependency 'com.facebook.android:facebook-android-sdk' in project ':app'. Resolved versions for app (4.23.0) and test app (4.22.0) differ. See http://g.co/androidstudio/app-test-app-conflict for details.
I always fix it by copy the same dependency with testCompile or androidTestCompile. To force the same version everywhere. But I don't understand how this can happen. I thought that test and androidTest always use the same dependencies as the main project. I can only add some additional test only dependencies by testCompile or androidTestCompile. So I think that until I add some newer version explicitly as testCompile it can't happen. But I have facebook-android-sdk defined only in the app module and it is defined also in some 3rd party libraries, but nowhere as testCompile. *And on 3.0.0 plugin it looks that it is much worse. It looks like problem happens here every time when you have two 3rd libs which booth use a different version of same common dependency.* -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
