简体   繁体   English

尝试在 flutter 项目中添加对 google_fonts 的依赖时出错

[英]Error in trying to add dependency for google_fonts in flutter project

I'm getting this error.我收到这个错误。 Please help.请帮忙。

Because google_fonts >=2.0.0-nullsafety.0 depends on crypto ^3.0.0 and uuid 2.2.2 depends on crypto ^2.0.0, google_fonts >=2.0.0-nullsafety.0 is incompatible with uuid 2.2.2.因为 google_fonts >=2.0.0-nullsafety.0 依赖于 crypto ^3.0.0 而 uuid 2.2.2 依赖于 crypto ^2.0.0,google_fonts >=2.0.0-nullsafety.0 与 uuid 2.2.2 不兼容。 And because no versions of uuid match >2.2.2 <3.0.0, google_fonts >=2.0.0-nullsafety.0 is incompatible with uuid ^2.2.2.并且因为没有版本的 uuid 匹配 >2.2.2 <3.0.0,google_fonts >=2.0.0-nullsafety.0 与 uuid ^2.2.2 不兼容。 So, because flutter_firebase_login depends on both uuid ^2.2.2 and google_fonts ^2.1.0, version solving failed.所以,因为flutter_firebase_login同时依赖uuid^2.2.2和google_fonts^2.1.0,导致版本解析失败。 pub get failed (1; So, because flutter_firebase_login depends on both uuid ^2.2.2 and google_fonts ^2.1.0, version solving failed.) pub get failed (1; 所以,因为 flutter_firebase_login 同时依赖 uuid ^2.2.2 和 google_fonts ^2.1.0,版本解析失败。)

I'm trying to add the dependency of google_fonts to my flutter project and facing this issue.我正在尝试将 google_fonts 的依赖项添加到我的 flutter 项目并面临这个问题。 Kindly help.请帮忙。 Thanks谢谢

You need to upgrade your "uuid" package to some null safety version or you can use older versions of "google_fonts".您需要将您的“uuid”package 升级到一些 null 安全版本,或者您可以使用旧版本的“google_fonts”。 If you want to update "uuid" you can use ^3.0.4 or if you want to use older "google_fonts" version you can use ^1.1.2 version.如果你想更新“uuid”,你可以使用^3.0.4或者如果你想使用旧的“google_fonts”版本,你可以使用^1.1.2版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试将 Firebase 依赖项添加到 Qt 项目时生成错误 - Build error when trying to add Firebase dependency to Qt project Flutter 添加 Flutter_auth 依赖项时应用未加载 - Flutter app not loading when I add Flutter_auth dependency 尝试使用 Flutter Firebase 再次登录时,Google 登录包的断开连接方法调用导致错误 - Google Sign In package's disconnect method call results in error when trying to sign in again using Flutter Firebase Cocoapods M1 Mac 中Flutter 项目报错 - Cocoapods Error in Flutter Project in M1 Mac 尝试在我的 Android 应用程序项目中添加电话身份验证时出现错误 - I am getting error when trying to add phone authentication in my Android app project 我正在尝试使用 Firebase 在 Flutter 中使用 Google 注销,但它不起作用 - I'm trying to signOut with google in Flutter with Firebase and it doesn't work 如何正确地将 Admob 添加到 Flutter 项目中? - How to properly add Admob to a Flutter Project? 如何将 Firebase-Crashlytics 添加到 Flutter 项目? - How to add Firebase-Crashlytics to Flutter project? 谷歌登录后颤动添加用户数据 - flutter add user data after google sign in Firestore:Flutter pugin,尝试按字段对数据进行排序时出错 - Firestore: Flutter pugin, error when trying to sort the data by a field
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM