次のエラーが起きた。
ERROR: The versions of the Android Gradle plugin and Gradle are not compatible. Please do one of the following: Update your plugin to version 2.4. This will require changes to build.gradle due to API changes.
そのため、Gradle Plugin のバージョンを次のように上げた。
// Top-level build file buildscript { dependencies { // 2.2.3 -> 3.3.2 に classpath 'com.android.tools.build:gradle:3.3.2' } }
すると、次のエラーが起きた。
ERROR: Could not find com.android.tools.build:gradle:3.3.2.
repositories に、google() を追加することで解決した。
// Top-level build file buildscript { repositories { google() // 追加 jcenter() } } allprojects { repositories { google() // 追加 jcenter() }
参考サイト:
stackoverflow.com