Could not find support-v4.jar

症状

Android Studioでのビルドにおいて以下のエラーが発生する

 

原因

Google Firebase が support-v4:24.0.0 に依存している。

You should update your local repository via the SDK Manager. It looks like ‘com.google.firebase:firebase-messaging:9.6.0’ depends on com.android.support:support-v4:24.0.0, which is not installed on your computer. This dependency is also not on Bintray, hence Gradle can’t find it there – this is what the error message says.

 

対策

build.gradleの更新(編集)