google-gemini / generative-ai-dart

The official Dart library for the Google Gemini API
https://ai.google.dev/gemini-api/docs/get-started/tutorial?lang=dart
Apache License 2.0
571 stars 115 forks source link

import problem #183

Closed VivekSorathiyaa closed 5 months ago

VivekSorathiyaa commented 5 months ago

Description of the bug:

Target of URI doesn't exist: 'package:google_generative_ai/google_generative_ai.dart'. Try creating the file referenced by the URI, or try using a URI for a file that does exist.darturi_does_not_exist library package:google_generative_ai/google_generative_ai.dart package:google_generative_ai/google_generative_ai.dart

Actual vs expected behavior:

No response

Any other information you'd like to share?

No response

natebosch commented 5 months ago

See https://github.com/google-gemini/generative-ai-dart?tab=readme-ov-file#using-the-sdk-in-your-own-app

This package needs to be a dependency listed in pubspec.yaml and the packages updated. dart pub add or flutter pub add should handle this.