While trying to upgrade Glide from 3.7.0 to 4.2.0, Android Studio complained:
Error:Failed to resolve: com.android.support:support-annotations:26.0.2 Install Repository and sync project
Open File
Show in Project Structure dialogError:Failed to resolve: com.android.support:support-annotations:26.0.2 Install Repository and sync project
Open File
Show in Project Structure dialog
I tried changing my locuslabs-android-sdk/sdk/build.gradle
as follows:
from:
compile "com.github.bumptech.glide:glide:${glide}"
to:
compile("com.github.bumptech.glide:glide:${glide}") {
exclude module: 'com.android.support:support-annotations'
}
But Android Studio still complained with the same error message.