首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
Flutter中报A dependency may only have one source错误
其他
2020-03-26 10:10:11
阅读次数: 0
在使用Flutter的时候添加依赖报错了
具体错误如下图所示:
解决方案
:
1.
pubspec.yaml 文件添加依赖的内容,
特别注意 sdk 对齐格式
。
正确格式如下图所示:
2.
然后点击
Packages get
3.
运行的成功结果如下图所示:
点赞
收藏
分享
文章举报
敲代码的小强
发布了20 篇原创文章
·
获赞 2
·
访问量 9129
私信
关注
猜你喜欢
转载自
blog.csdn.net/hzqit520/article/details/105110834
Flutter中报A dependency may only have one source错误
A dependency may only have one source.
Flutter之导url_launcher包提示 A dependency may only have one source.
Error on line X, column X of pubspec.yaml: A dependency may only have one source.
解决 LLVM 错误提示 may only occur zero or one times!
You Have Only One Life
Only one Looper may be created per thread
macOS 安装 AutoDeskCAD 时错误提示 The directory may be locked by another process or have been set Read Only
Error: Rule can only have one resource source (provided resource and test + include + exclude)
Path for project must have only one segment
[已解决|多种方案]Error: Rule can only have one resource source (provided resource and test + include + excl
maven错误:dependency cannot have character [children]
Path for project must have only one segment.
element 'dependency' cannot have character [children], because the type's content type is element-only.
Only one SparkContext may be running in this JVM (see SPARK-2243). To ignore this error, set spark.d
The local variable fruit may not have been initialized 错误
MyBatis Generator.Path for project must have only one segment.
Android Studio 出现 Gradle's dependency cache may be corrupt 错误分析
报错 :Android Studio 出现 Gradle's dependency cache may be corrupt 错误分析
vue项目启动报Error: Cannot find module ‘webpack‘ Require stack以及Error: Rule can only have one resource so
pyspark AnalysisException: u'Text data source supports only a single column, and you have 5 columns
mac AndroidStudio proxy错误:You have JVM property "https.proxyHost" set to .... This may lea
Errors may have originated from an input operation.系输入错误
解决selenium传入cookies错误:InvalidCookieDomainException: Message: Cookies may only be set for the curre
Gradle's dependency cache may be corrupt
Gradle‘s dependency cache may be corrupt
AndroidStudio Gradle‘s dependency cache may be corrupt
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently
【linux】Ubuntu上安装openssh提示:This may mean that the package is missing, has been obsoleted, or is only available from another source
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Only one AsyncAnnotationBeanPostProcessor may exist within the context. Offending resource: class path
今日推荐
周排行
四大线程池详解
如何高效使用Vim
Mogodb的常用操作总结
Spyder默认页面布局调整
SAR日志分析
OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版。 本文对OAuth 2.0的设计思路和运行流程,做一个简明通俗的解释,主要参考材料为R
WebService中注解开发,CXF,Spring整合,Rest风格
2019考研英语一 Text1分析
windows下安装docker详细步骤
CentOS 7/6系统升级内核版本到5.2.2
每日归档
更多
2024-08-05(0)
2024-08-04(0)
2024-08-03(0)
2024-08-02(0)
2024-08-01(0)
2024-07-31(0)
2024-07-30(0)
2024-07-29(0)
2024-07-28(0)
2024-07-27(0)