When building I get the following error:
Conflict with dependency \'com.android.support:support-annotations\'. Resolved versions for app (23.1.0) and test a
In my case, I added below code in dependencies of app level build.gradle
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' })
After that, I clean the project and rebuild.My problem solved.