[英]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.