-
Notifications
You must be signed in to change notification settings - Fork 781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to start for Linux app on flutter 3.24.5 #879
Comments
VijayakumarMariappan
added
core
Common
open
Open and need to address
chat
Chat component
labels
Dec 3, 2024
Hi @sgon00 , We have updated the Volume 4, 2024 release source, please take update, it will be working fine now. Regards, |
LavanyaGowtham2021
added
waiting for customer
Cannot make further progress until the customer responds
and removed
open
Open and need to address
labels
Dec 16, 2024
Thanks a lot for the reply and help. I tried ❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.27.1, on Ubuntu 24.04.1 LTS 6.8.0-50-generic, locale en_US.UTF-8)
[✗] Android toolchain - develop for Android devices
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.96.0)
[✓] Connected device (2 available)
[✓] Network resources
❯ git clone https://github.com/syncfusion/flutter-examples
❯ cd flutter-examples
❯ flutter pub get
Resolving dependencies... (4.8s)
Downloading packages... (1.7s)
+ archive 3.6.1 (4.0.2 available)
+ async 2.11.0 (2.12.0 available)
+ boolean_selector 2.1.1 (2.1.2 available)
+ characters 1.3.0 (1.4.0 available)
+ clock 1.1.1 (1.1.2 available)
+ collection 1.19.0 (1.19.1 available)
+ convert 3.1.2
+ crypto 3.0.6
+ cupertino_icons 1.0.8
+ desktop_window 0.4.0 (0.4.2 available)
+ device_info_plus 10.1.2 (11.2.0 available)
+ device_info_plus_platform_interface 7.0.2
+ fake_async 1.3.1 (1.3.2 available)
+ ffi 2.1.3
+ file 7.0.1
+ fixnum 1.1.1
+ flutter 0.0.0 from sdk flutter
+ flutter_localizations 0.0.0 from sdk flutter
+ flutter_test 0.0.0 from sdk flutter
+ flutter_web_plugins 0.0.0 from sdk flutter
+ http 1.2.2
+ http_parser 4.1.1
+ image 4.3.0 (4.5.2 available)
+ intl 0.19.0 (0.20.1 available)
+ jiffy 6.3.2
+ leak_tracker 10.0.7 (10.0.8 available)
+ leak_tracker_flutter_testing 3.0.8 (3.0.9 available)
+ leak_tracker_testing 3.0.1
+ matcher 0.12.16+1 (0.12.17 available)
+ material_color_utilities 0.11.1 (0.12.0 available)
+ meta 1.15.0 (1.16.0 available)
+ path 1.9.0 (1.9.1 available)
+ path_provider 2.1.5
+ path_provider_android 2.2.15
+ path_provider_foundation 2.4.1
+ path_provider_linux 2.2.1
+ path_provider_platform_interface 2.1.2
+ path_provider_windows 2.3.0
+ petitparser 6.0.2
+ platform 3.1.6
+ plugin_platform_interface 2.1.8
+ sky_engine 0.0.0 from sdk flutter
+ source_span 1.10.0 (1.10.1 available)
+ sprintf 7.0.0
+ stack_trace 1.12.0 (1.12.1 available)
+ stream_channel 2.1.2 (2.1.3 available)
+ string_scanner 1.3.0 (1.4.1 available)
+ syncfusion_flutter_barcodes 28.1.35
+ syncfusion_flutter_calendar 28.1.35
+ syncfusion_flutter_charts 28.1.35
+ syncfusion_flutter_chat 28.1.35-beta
+ syncfusion_flutter_core 28.1.35
+ syncfusion_flutter_datagrid 28.1.35
+ syncfusion_flutter_datagrid_export 28.1.35
+ syncfusion_flutter_datepicker 28.1.35
+ syncfusion_flutter_gauges 28.1.35
+ syncfusion_flutter_maps 28.1.35
+ syncfusion_flutter_pdf 28.1.35
+ syncfusion_flutter_pdfviewer 28.1.35
+ syncfusion_flutter_signaturepad 28.1.35
+ syncfusion_flutter_sliders 28.1.35
+ syncfusion_flutter_treemap 28.1.35
+ syncfusion_flutter_xlsio 28.1.35
+ syncfusion_localizations 28.1.35
+ syncfusion_officechart 28.1.35
+ syncfusion_officecore 28.1.35
+ syncfusion_pdfviewer_macos 28.1.35
+ syncfusion_pdfviewer_platform_interface 28.1.35
+ syncfusion_pdfviewer_web 28.1.35
+ syncfusion_pdfviewer_windows 28.1.35
+ term_glyph 1.2.1 (1.2.2 available)
+ test_api 0.7.3 (0.7.4 available)
+ timezone 0.9.4 (0.10.0 available)
+ typed_data 1.4.0
+ url_launcher 6.3.1
+ url_launcher_android 6.3.14
+ url_launcher_ios 6.3.2
+ url_launcher_linux 3.2.1
+ url_launcher_macos 3.2.2
+ url_launcher_platform_interface 2.3.2
+ url_launcher_web 2.3.3
+ url_launcher_windows 3.1.3
+ uuid 4.5.1
+ vector_math 2.1.4
+ vm_service 14.3.0 (15.0.0 available)
+ web 1.1.0
+ win32 5.9.0
+ win32_registry 1.1.5 (2.0.1 available)
+ xdg_directories 1.1.0
+ xml 6.5.0
Changed 90 dependencies!
26 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
❯ flutter run --release -d linux
Launching lib/main.dart on Linux in release mode...
add_custom_command() missing VERBATIM or FLUTTER_TARGET_PLATFORM, updating.
ERROR: Error: Couldn't resolve the package 'flutter_markdown' in 'package:flutter_markdown/flutter_markdown.dart'.
ERROR: Error: Couldn't resolve the package 'google_generative_ai' in 'package:google_generative_ai/google_generative_ai.dart'.
ERROR: lib/samples/ai_assist_view/customization.dart:6:8: Error: Not found: 'package:flutter_markdown/flutter_markdown.dart'
ERROR: import 'package:flutter_markdown/flutter_markdown.dart';
ERROR: ^
ERROR: lib/samples/ai_assist_view/getting_started.dart:4:8: Error: Not found: 'package:flutter_markdown/flutter_markdown.dart'
ERROR: import 'package:flutter_markdown/flutter_markdown.dart';
ERROR: ^
ERROR: lib/samples/ai_assist_view/customization.dart:7:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_assist_view/getting_started.dart:5:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:4:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:9:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:3:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:7:8: Error: Not found: 'package:google_generative_ai/google_generative_ai.dart'
ERROR: import 'package:google_generative_ai/google_generative_ai.dart';
ERROR: ^
ERROR: lib/samples/ai_assist_view/customization.dart:457:3: Error: Type 'MarkdownBody' not found.
ERROR: MarkdownBody _buildResponseContent(AssistMessage message) {
ERROR: ^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:26:8: Error: Type 'ChatSession' not found.
ERROR: late ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:40:8: Error: Type 'ChatSession' not found.
ERROR: late ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:23:14: Error: Type 'GenerativeModel' not found.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:24:14: Error: Type 'ChatSession' not found.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:23:14: Error: Type 'GenerativeModel' not found.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:24:14: Error: Type 'ChatSession' not found.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:27:14: Error: Type 'GenerativeModel' not found.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:28:14: Error: Type 'ChatSession' not found.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:369:11: Error: 'GenerativeModel' isn't a type.
ERROR: final GenerativeModel aiModel = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:375:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response =
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:369:37: Error: The method 'GenerativeModel' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: final GenerativeModel aiModel = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:376:42: Error: The getter 'Content' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: await aiModel.generateContent([Content.text(prompt)]);
ERROR: ^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:447:16: Error: The method 'MarkdownBody' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR: child: MarkdownBody(
ERROR: ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:449:23: Error: The method 'MarkdownStyleSheet' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownStyleSheet'.
ERROR: styleSheet: MarkdownStyleSheet(
ERROR: ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:458:12: Error: The method 'MarkdownBody' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR: return MarkdownBody(
ERROR: ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/customization.dart:460:19: Error: The method 'MarkdownStyleSheet' isn't defined for the class 'AssistViewState'.
ERROR: - 'AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/customization.dart' ('lib/samples/ai_assist_view/customization.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownStyleSheet'.
ERROR: styleSheet: MarkdownStyleSheet(
ERROR: ^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:82:18: Error: The method 'MarkdownBody' isn't defined for the class '_AssistViewState'.
ERROR: - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'MarkdownBody'.
ERROR: return MarkdownBody(data: message.data);
ERROR: ^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:183:11: Error: 'GenerativeModel' isn't a type.
ERROR: final GenerativeModel aiModel = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:189:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response =
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:183:37: Error: The method 'GenerativeModel' isn't defined for the class '_AssistViewState'.
ERROR: - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: final GenerativeModel aiModel = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_assist_view/getting_started.dart:190:42: Error: The getter 'Content' isn't defined for the class '_AssistViewState'.
ERROR: - '_AssistViewState' is from 'package:flutter_examples/samples/ai_assist_view/getting_started.dart' ('lib/samples/ai_assist_view/getting_started.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: await aiModel.generateContent([Content.text(prompt)]);
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:788:22: Error: 'Content' isn't a type.
ERROR: final List<Content> content = [Content.text(aiPrompt)];
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:789:17: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response =
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:766:23: Error: The method 'GenerativeModel' isn't defined for the class '_AiCalendarState'.
ERROR: - '_AiCalendarState' is from 'package:flutter_examples/samples/ai_samples/ai_calender/calendar_appointment.dart' ('lib/samples/ai_samples/ai_calender/calendar_appointment.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: final aiModel = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:788:42: Error: The getter 'Content' isn't defined for the class '_AiCalendarState'.
ERROR: - '_AiCalendarState' is from 'package:flutter_examples/samples/ai_samples/ai_calender/calendar_appointment.dart' ('lib/samples/ai_samples/ai_calender/calendar_appointment.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: final List<Content> content = [Content.text(aiPrompt)];
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_calender/calendar_appointment.dart:802:66: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
ERROR: final Iterable<RegExpMatch> matches = regex.allMatches(responseText);
ERROR: ^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:26:8: Error: 'ChatSession' isn't a type.
ERROR: late ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:355:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response = await _chat.sendMessage(
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:350:21: Error: The method 'GenerativeModel' isn't defined for the class '_DataPreProcessingSampleState'.
ERROR: - '_DataPreProcessingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/data_pre_processing.dart' ('lib/samples/ai_samples/ai_charts/data_pre_processing.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: final model = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/data_pre_processing.dart:356:9: Error: The getter 'Content' isn't defined for the class '_DataPreProcessingSampleState'.
ERROR: - '_DataPreProcessingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/data_pre_processing.dart' ('lib/samples/ai_samples/ai_charts/data_pre_processing.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: Content.text(message),
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:40:8: Error: 'ChatSession' isn't a type.
ERROR: late ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:845:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response = await _chat.sendMessage(
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:839:21: Error: The method 'GenerativeModel' isn't defined for the class '_StockForecastingSampleState'.
ERROR: - '_StockForecastingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/stock_forecasting.dart' ('lib/samples/ai_samples/ai_charts/stock_forecasting.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: final model = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_charts/stock_forecasting.dart:846:9: Error: The getter 'Content' isn't defined for the class '_StockForecastingSampleState'.
ERROR: - '_StockForecastingSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_charts/stock_forecasting.dart' ('lib/samples/ai_samples/ai_charts/stock_forecasting.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: Content.text(message),
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:23:14: Error: 'GenerativeModel' isn't a type.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:24:14: Error: 'ChatSession' isn't a type.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:38:14: Error: The method 'GenerativeModel' isn't defined for the class '_AnamolyDetectionSampleState'.
ERROR: - '_AnamolyDetectionSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/anamoly_detection.dart' ('lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: _model = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:138:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response = await _chat.sendMessage(
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart:139:9: Error: The getter 'Content' isn't defined for the class '_AnamolyDetectionSampleState'.
ERROR: - '_AnamolyDetectionSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/anamoly_detection.dart' ('lib/samples/ai_samples/ai_datagrid/anamoly_detection.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: Content.text(message),
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:23:14: Error: 'GenerativeModel' isn't a type.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:24:14: Error: 'ChatSession' isn't a type.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:38:14: Error: The method 'GenerativeModel' isn't defined for the class '_PredictiveDataSampleState'.
ERROR: - '_PredictiveDataSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/predictive_data_entry.dart' ('lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: _model = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:152:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response = await _chat.sendMessage(
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart:153:9: Error: The getter 'Content' isn't defined for the class '_PredictiveDataSampleState'.
ERROR: - '_PredictiveDataSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_datagrid/predictive_data_entry.dart' ('lib/samples/ai_samples/ai_datagrid/predictive_data_entry.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: Content.text(message),
ERROR: ^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:27:14: Error: 'GenerativeModel' isn't a type.
ERROR: late final GenerativeModel _model;
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:28:14: Error: 'ChatSession' isn't a type.
ERROR: late final ChatSession _chat;
ERROR: ^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:104:14: Error: The method 'GenerativeModel' isn't defined for the class '_SmartFillSampleState'.
ERROR: - '_SmartFillSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart' ('lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'GenerativeModel'.
ERROR: _model = GenerativeModel(
ERROR: ^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:148:13: Error: 'GenerateContentResponse' isn't a type.
ERROR: final GenerateContentResponse response =
ERROR: ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart:149:35: Error: The getter 'Content' isn't defined for the class '_SmartFillSampleState'.
ERROR: - '_SmartFillSampleState' is from 'package:flutter_examples/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart' ('lib/samples/ai_samples/ai_pdf_viewer/ai_form_filling.dart').
ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'Content'.
ERROR: await _chat.sendMessage(Content.text(message));
ERROR: ^^^^^^^
ERROR: Unhandled exception:
ERROR: Target kernel_snapshot_program failed: Exception
Building Linux application...
Error: Build process failed
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _runBuild (package:flutter_tools/src/linux/build_linux.dart:210:5)
<asynchronous suspension>
#2 buildLinux (package:flutter_tools/src/linux/build_linux.dart:83:5)
<asynchronous suspension>
#3 LinuxDevice.buildForDevice (package:flutter_tools/src/linux/linux_device.dart:67:5)
<asynchronous suspension>
#4 DesktopDevice.startApp (package:flutter_tools/src/desktop_device.dart:120:7)
<asynchronous suspension>
#5 FlutterDevice.runCold (package:flutter_tools/src/resident_runner.dart:538:33)
<asynchronous suspension>
#6 ColdRunner.run (package:flutter_tools/src/run_cold.dart:53:28)
<asynchronous suspension>
#7 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:854:27)
<asynchronous suspension>
#8 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#11 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#13 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#14 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#16 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension> |
LavanyaGowtham2021
added
open
Open and need to address
and removed
waiting for customer
Cannot make further progress until the customer responds
labels
Dec 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
Fail to start for Linux app on flutter 3.24.5
Steps to reproduce
flutter pub get
flutter run --release -d linux
Code sample
N/A
Screenshots or Video
N/A
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
Linux
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: