Flutter之导url_launcher包提示 A dependency may only have one source.
生活随笔
收集整理的這篇文章主要介紹了
Flutter之导url_launcher包提示 A dependency may only have one source.
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、問題
flutter項目在pubspec.yaml導入url_launcher包,然后點擊Pub get錯誤提示如下
F:\flutter_sdk\flutter\bin\flutter.bat --no-color pub get Running "flutter pub get" in flutter_1... Error on line 25, column 5 of pubspec.yaml: A dependency may only have one source.?25 │ ┌ sdk: flutter26 │ │ url_launcher: ^5.5.027 │ │ 28 │ │ 29 │ │ # The following adds the Cupertino Icons font to your application.30 │ │ # Use with the CupertinoIcons class for iOS style icons.31 │ │ cupertino_icons: ^0.1.3│ └──^? pub get failed (65; ?) Process finished with exit code 65?
?
?
?
?
2、分析
cupertino_icons和url_launcher關鍵字沒有左對齊
?
?
?
?
?
3、解決辦法
讓cupertino_icons和url_launcher關鍵字左對齊,然后再點擊Pub get更新包就行
?
?
總結
以上是生活随笔為你收集整理的Flutter之导url_launcher包提示 A dependency may only have one source.的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Flutter之window系统下配置开
- 下一篇: Flutter之运行提示Could no