Android studio 失败
我将Android studio 失败,android-studio,flutter,Android Studio,Flutter,我将flatter\u chess\u board:^0.9.4添加到pubspec.yaml文件的依赖项部分。运行flatter pub get时,我得到: 因为国际象棋依赖于颤振棋盘^0.9.4,这取决于 chess>=0.6.5=0.6.5在您的pubspec.yaml中,有两个包存在冲突: flutter_chess_board: ^0.9.4 chess: 1.0.0+1 将版本号更改为any,并让颤振选择这些软件包中没有冲突的版本: flutter_chess_board: any
flatter\u chess\u board:^0.9.4
添加到pubspec.yaml
文件的依赖项部分。运行flatter pub get
时,我得到:
因为国际象棋依赖于颤振棋盘^0.9.4,这取决于
chess>=0.6.5=0.6.5在您的
pubspec.yaml
中,有两个包存在冲突:
flutter_chess_board: ^0.9.4
chess: 1.0.0+1
将版本号更改为any
,并让颤振选择这些软件包中没有冲突的版本:
flutter_chess_board: any
chess: any
然后运行
flatter-pub-get
并检查pubspec.lock
文件,搜索这些包,以找到它们没有冲突的版本。更新您的pubspec.yaml
并用在pubspec.lock
中找到的正确版本号替换any
请也在您的pubspec.yaml文件中添加此依赖项https://pub.dev/packages/chess
chess: ^0.6.5
然后再次运行
flatter pub get
您能给我们看一下您的pubspec.yaml
吗?