突然このようなエラーがでてgradleのsyncが通らなくなりました
1 2 3 4 5 6 7 8 9 10 11 12 |
Error:Error:Failed to resolve: com.android.support:support-annotations:27.0.1 Install Repository and sync project Error:Error:Failed to resolve: com.android.support:appcompat-v7:27.0.1 Install Repository and sync project Error:Error:Failed to resolve: com.android.support:customtabs:27.0.1 Install Repository and sync project Error:Error:Failed to resolve: com.android.support:cardview-v7:27.0.1 Install Repository and sync project Error:Error:Failed to resolve: com.android.support:support-v4:27.0.1 Install Repository and sync project Error:Error:Failed to resolve: com.android.support:support-core-utils:27.0.1 Install Repository and sync project |
build.gradleを編集することで解消
この部分を
compile ‘com.facebook.android:facebook-android-sdk:***)’
***はバージョン数
このようにする
compile ‘com.facebook.android:facebook-android-sdk:4.26.0’
バージョンを上げて再度syncすることで無事問題は解決されました。