Flutter 第38行第1列出错:映射键重复。在Flatter pubspec.yaml中 请大家在Flatter应用程序中帮助我解决这个问题。我正在尝试添加carousel_应用程序扩展名,当我添加时,pubspec.yaml开始抱怨“第38行第1列错误:重复映射键”。我已尝试控制缩进。我尝试的所有操作都失败。请帮助。提前感谢。这是我的pubspec文件: 名称:购物 描述:一个新的颤振项目。 #下面定义了应用程序的版本和内部版本号。 #版本号是由点分隔的三个数字,如1.2.43 #后跟可选的内部版本号,以+分隔。 #版本和制造商编号都可能在颤振中被覆盖 #通过分别指定--build name和--build number来生成。 #在Android中,版本名用作版本名,而版本号用作版本代码。 #更多关于Android版本控制的信息,请访问https://developer.android.com/studio/publish/versioning #在iOS中,生成名称用作CbundleShortVersionString,而生成编号用作CbundLeverVersion。 #阅读有关iOS版本控制的更多信息,请访问 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 版本:1.0.0+1 环境: sdk:“>=2.1.0

Flutter 第38行第1列出错:映射键重复。在Flatter pubspec.yaml中 请大家在Flatter应用程序中帮助我解决这个问题。我正在尝试添加carousel_应用程序扩展名,当我添加时,pubspec.yaml开始抱怨“第38行第1列错误:重复映射键”。我已尝试控制缩进。我尝试的所有操作都失败。请帮助。提前感谢。这是我的pubspec文件: 名称:购物 描述:一个新的颤振项目。 #下面定义了应用程序的版本和内部版本号。 #版本号是由点分隔的三个数字,如1.2.43 #后跟可选的内部版本号,以+分隔。 #版本和制造商编号都可能在颤振中被覆盖 #通过分别指定--build name和--build number来生成。 #在Android中,版本名用作版本名,而版本号用作版本代码。 #更多关于Android版本控制的信息,请访问https://developer.android.com/studio/publish/versioning #在iOS中,生成名称用作CbundleShortVersionString,而生成编号用作CbundLeverVersion。 #阅读有关iOS版本控制的更多信息,请访问 # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html 版本:1.0.0+1 环境: sdk:“>=2.1.0,flutter,dart,mobile-application,flutter-dependencies,dart-pub,Flutter,Dart,Mobile Application,Flutter Dependencies,Dart Pub,请更改此项: dependencies: flutter: sdk: flutter carousel_pro: ^1.0.0 # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 为此: dependencies: flutt

请更改此项:

dependencies:
flutter:
   sdk: flutter
   carousel_pro: ^1.0.0


  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
为此:

dependencies:
  flutter:
    sdk: flutter
  carousel_pro: ^1.0.0



  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
正确的识别在您的pubspec.yaml上非常重要

dependencies:
  flutter:
    sdk: flutter
  carousel_pro: ^1.0.0



  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2