benznest / flutter_rounded_progress_bar

Other
37 stars 13 forks source link

Problem with "Plugin Project" #9

Open sylvainjack opened 3 years ago

sylvainjack commented 3 years ago

I keep getting this message when compiling : "Plugin project :flutter_rounded_progress_bar not found. Please update settings.gradle." Am I forgetting to do something ? Thanks for your help :)

fikretsengul commented 3 years ago

I have the same problem, help would be great. Thanks.

Irfan-S commented 2 years ago

This resolved the issue for me. Replace the original code in your android/settings.gradle file to:

include ':app'

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
}

Found this from: https://stackoverflow.com/a/62349448/6911518 Hope this helps!