Unhandled Exception: **GeminiException** => The connection errored:

📅 发布时间:2026/7/13 3:04:25 👁️ 浏览次数:
Unhandled Exception: **GeminiException** => The connection errored:
题意:未处理的异常:GeminiException(双子星异常)= 连接发生错误:问题背景:I'm usingflutter_geminipackage in my project. Yesterday it worked for me, I could chat with the Gemini AI, but today I can't. It is strange, because I did not touch the code. I receive this error:我在项目中使用了 flutter_gemini 这个包。昨天还能正常用 —— 我可以和 Gemini AI 聊天,但今天突然不行了。这很奇怪,因为我根本没动过代码,却收到了这个错误:[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception:GeminiException= The connection errored: Failed host lookup: 'generativelanguage.googleapis.com' This indicates an error which most likely cannot be solved by the library.This is how the Gemini