Unable to find a matching configuration of project

错误信息

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':url_launcher:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':url_launcher:debugCompileClasspath'.
   > Could not resolve project :url_launcher_macos.
     Required by:
         project :url_launcher
      > Unable to find a matching configuration of project :url_launcher_macos:
          - None of the consumable configurations have attributes.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
Finished with error: Gradle task assembleDebug failed with exit code 1

解决方法
时间很长,耐心等待

flutter pub cache repair 

pub cache

如果此类错误只是一个依赖报错,可以尝试这个

[path_provider] build error

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。