Code: Select all
bole@Bole:~/flutter_thingsboard_app$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.29.3, on Ubuntu 24.04.2 LTS 6.11.0-21-generic,
locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.99.2)
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
bole@Bole:~/flutter_thingsboard_app$ flutter analyze --suggestions
Synthetic package output (package:flutter_gen) is deprecated:
https://flutter.dev/to/flutter-gen-deprecation. In a future release,
synthetic-package will default to `false` and will later be removed entirely.
┌───────────────────────────────────────────────────────────────────┐
│ General Info │
│ [✓] App Name: thingsboard_app │
│ [✓] Supported Platforms: android, ios │
│ [✓] Is Flutter Package: yes │
│ [✓] Uses Material Design: yes │
│ [✓] Is Plugin: no │
│ [✓] Java/Gradle/Android Gradle Plugin: compatible java/gradle/agp
< /code>
und aus dem Code von oben ist alles kompatibel und funktioniert korrekt. Aber als ich das Projekt mit Flutter Run durchführe, geschah dies < /p>
../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart:88:23:
Error: The method 'hashValues' isn't defined for the class 'SlidableRatioNotification'.
- 'SlidableRatioNotification' is from 'package:flutter_slidable/src/notifications_old.dart'
('../.pub-cache/hosted/pub.dev/flutter_slidable-3.1.1/lib/src/notifications_old.dart').
Try correcting the name to the name of an existing method, or defining a method named 'hashValues'.
int get hashCode => hashValues(tag, ratio);
^^^^^^^^^^
Target kernel_snapshot_program failed: Exception
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/bole/flutter/bin/flutter'' finished with non-zero exit value 1
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 3s
Running Gradle task 'assembleDebug'... 3.8s
Error: Gradle task assembleDebug failed with exit code 1
bole@Bole:~/flutter_thingsboard_app$