leoafarias / palm_api_dart

A Dart client for interacting with the PaLM API, allowing developers to build generative AI applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation fails on a fresh new flutter project

IsometricShahil opened this issue · comments

Running flutter pub add palm_api fails with the following error message,

Note: collection is pinned to version 1.17.2 by flutter_test from the flutter SDK.
Because every version of flutter_test from sdk depends on collection 1.17.2 and every version of palm_api depends on collection ^1.18.0, flutter_test from sdk is    
  incompatible with palm_api.
So, because veret depends on both palm_api any and flutter_test from sdk, version solving failed.

The project was created with Flutter 3.13.1 (stable), Framework revision e1e47221e8, Engine revision b20183e040

@IsometricShahil hmm it seems the collection version is a bit ahead. I will try to hot fix, with a different version of collection.