[Flutter] Plugin project :location_web not found. Please update settings.gradleエラーの解消

flutter_native_splashでスプラッシュ画像を再生成する際になぜか発生する。

https://www.youtube.com/watch?v=6IIE5xXfqPs

これを参考に、android/settings.gradleに以下を追加する

def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()

def plugins = new Properties()
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
if (pluginsFile.exists()) {
    pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
}

plugins.each { name, path ->
    def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
    include ":$name"
    project(":$name").projectDir = pluginDirectory
}