Closed derek-alves closed 1 year ago
same issue https://github.com/flutter/flutter/issues/101347
I do this to solve it
build.gradle:
allprojects { repositories { google() jcenter() } }
settings.gradle
dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_PROJECT) //origin: RepositoriesMode.FAIL_ON_PROJECT_REPOS repositories { google() mavenCentral() jcenter() } }
@XHZ360 can you put that change into a PR please?
I'm trying to follow pigeon's add_to_app(books) example, but I'm getting this error:
Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by plugin class 'FlutterPlugin'