Android support library error after updating to 23.3.0
Solution 1:
For those people who are still facing this problem just add this line to your dependencies.
androidTestCompile 'com.android.support:support-annotations:23.3.0'
It solved my problem.
UPDATE:
If you have this error nowadays, you can just insert the new versioncode (23.3.0
in this case, or 27.1.1
in May '18) as it is described in the error into the above described solution.
Solution 2:
For those who still facing the problem, above answer did not help me in android studio 2.2 Preview.
add this to your gradle file.
configurations.all {
resolutionStrategy {
force 'com.android.support:support-annotations:23.1.1'
}
}
This fixed my issue.
Reference: https://github.com/JakeWharton/u2020/blob/05a57bf43b9b61f16d32cbe8717af77cd608b0fb/build.gradle#L136-L140