Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio 失败_Android Studio_Flutter - Fatal编程技术网

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
吗?