open-im-flutter-demo icon indicating copy to clipboard operation
open-im-flutter-demo copied to clipboard

[BUG] build failed

Open shiange opened this issue 5 months ago • 0 comments

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

Windows (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

C:\Users\VIP\Downloads\openim-demo-3.8.3>fvm use 3.27.4 ✓ Dependencies resolved. (29.6s) ✓ Project now uses Flutter SDK : SDK Version : 3.27.4

C:\Users\VIP\Downloads\openim-demo-3.8.3>fvm flutter pub get Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Resolving dependencies... Downloading packages... _fe_analyzer_shared 76.0.0 (83.0.0 available) analyzer 6.11.0 (7.4.6 available) animate_do 3.0.2 (4.2.0 available) archive 3.6.1 (4.0.7 available) async 2.11.0 (2.13.0 available) audio_session 0.1.25 (0.2.2 available) boolean_selector 2.1.1 (2.1.2 available) build 2.4.2 (2.5.4 available) build_resolvers 2.4.4 (2.5.4 available) build_runner 2.4.15 (2.5.4 available) build_runner_core 8.0.0 (9.1.2 available) camera 0.10.6 (0.11.1 available) characters 1.3.0 (1.4.0 available) checked_yaml 2.0.3 (2.0.4 available) chewie 1.8.5 (1.11.3 available) clock 1.1.1 (1.1.2 available) collection 1.19.0 (1.19.1 available) dart_style 2.3.8 (3.1.0 available) dart_webrtc 1.5.3+hotfix.2 (1.5.4 available) device_info_plus 10.1.2 (11.5.0 available) device_info_plus_platform_interface 7.0.2 (7.0.3 available) emoji_picker_flutter 3.1.0 (4.3.0 available) extended_image 8.3.1 (10.0.1 available) extended_image_library 4.0.6 (5.0.1 available) extended_text 13.1.0 (15.0.2 available) fake_async 1.3.1 (1.3.3 available) ffi 2.1.3 (2.1.4 available) file_picker 8.3.7 (10.2.0 available) ! flutter_background 1.3.0+1 (overridden) flutter_keyboard_visibility 5.4.1 (6.0.0 available) flutter_launcher_icons 0.13.1 (0.14.4 available) flutter_lints 3.0.2 (6.0.0 available) flutter_local_notifications 18.0.1 (19.3.0 available) flutter_local_notifications_linux 5.0.0 (6.0.0 available) flutter_local_notifications_platform_interface 8.0.0 (9.1.0 available) flutter_map 6.2.1 (8.1.1 available) flutter_native_splash 2.4.4 (2.4.6 available) flutter_openim_sdk 3.8.3+3 (3.8.3+hotfix.3.1 available) flutter_screen_lock 9.1.1 (9.2.2+2 available) flutter_slidable 3.1.2 (4.0.0 available) flutter_svg 2.0.9 (2.2.0 available) ! flutter_webrtc 0.12.10 (overridden) (0.14.1 available) geolocator 12.0.0 (14.0.1 available) geolocator_android 4.6.2 (5.0.1+1 available) get 4.6.6 (4.7.2 available) image 4.3.0 (4.5.4 available) image_cropper 5.0.1 (9.1.0 available) image_cropper_for_web 3.0.0 (6.1.0 available) image_cropper_platform_interface 5.0.0 (7.1.0 available) intl 0.19.0 (0.20.2 available) js 0.6.7 (0.7.2 available) just_audio 0.9.46 (0.10.4 available) leak_tracker 10.0.7 (11.0.1 available) leak_tracker_flutter_testing 3.0.8 (3.0.10 available) leak_tracker_testing 3.0.1 (3.0.2 available) lints 3.0.0 (6.0.0 available) livekit_client 2.2.5 (2.4.8 available) lottie 2.7.0 (3.3.1 available) map_launcher 3.1.0 (3.5.0 available) matcher 0.12.16+1 (0.12.17 available) material_color_utilities 0.11.1 (0.13.0 available) meta 1.15.0 (1.17.0 available) mime 1.0.6 (2.0.0 available) path 1.9.0 (1.9.1 available) permission_handler 11.4.0 (12.0.0+1 available) permission_handler_android 12.1.0 (13.0.1 available) persistent_bottom_nav_bar_v2 5.4.0 (6.1.0 available) petitparser 6.0.2 (7.0.0 available) platform_detect 2.1.0 (2.1.5 available) protobuf 3.1.0 (4.1.0 available) record 5.2.1 (6.0.0 available) record_linux 0.7.2 (1.1.0 available) rxdart 0.27.7 (0.28.0 available) ! scrollable_positioned_list 0.3.8 (overridden) sound_mode 2.0.2 (3.1.1 available) source_gen 1.5.0 (2.0.0 available) source_span 1.10.0 (1.10.1 available) sqflite 2.4.1 (2.4.2 available) sqflite_android 2.4.0 (2.4.1 available) sqflite_common 2.5.4+6 (2.5.5 available) sqflite_darwin 2.4.1+1 (2.4.2 available) stack_trace 1.12.0 (1.12.1 available) stream_channel 2.1.2 (2.1.4 available) string_scanner 1.3.0 (1.4.1 available) syncfusion_flutter_core 25.2.7 (29.2.11 available) syncfusion_flutter_sliders 25.2.7 (29.2.11 available) synchronized 3.3.0+3 (3.3.1 available) term_glyph 1.2.1 (1.2.2 available) test_api 0.7.3 (0.7.6 available) unicode 0.3.1 (1.1.8 available) vector_math 2.1.4 (2.2.0 available) vibration 1.9.0 (3.1.3 available) vibration_platform_interface 0.0.3 (0.1.0 available) ! video_player_android 2.7.1 (overridden) (2.8.7 available) vm_service 14.3.0 (15.0.2 available) win32 5.10.1 (5.14.0 available) win32_registry 1.1.5 (2.1.0 available) xml 6.5.0 (6.6.0 available) Got dependencies! 96 packages have newer versions incompatible with dependency constraints. Try flutter pub outdated for more information.

C:\Users\VIP\Downloads\openim-demo-3.8.3>fvm flutter build apk Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply

Downloading file from: https://github.com/media-kit/libmpv-android-video-build/releases/download/v1.1.5/default-arm64-v8a.jar Downloading file from: https://github.com/media-kit/libmpv-android-video-build/releases/download/v1.1.5/default-armeabi-v7a.jar Downloading file from: https://github.com/media-kit/libmpv-android-video-build/releases/download/v1.1.5/default-x86_64.jar Downloading file from: https://github.com/media-kit/libmpv-android-video-build/releases/download/v1.1.5/default-x86.jar Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source! Error: Couldn't resolve the package 'screen_brightness' in 'package:screen_brightness/screen_brightness.dart'. openim_common/lib/src/widgets/custom_mk_controls.dart:5:8: Error: Not found: 'package:screen_brightness/screen_brightness.dart' import 'package:screen_brightness/screen_brightness.dart'; ^ ../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/record_linux-0.7.2/lib/record_linux.dart:12:7: Error: The non-abstract class 'RecordLinux' is missing implementations for these members:

  • RecordPlatform.startStream Try to either
  • provide an implementation,
  • inherit an implementation from a superclass or mixin,
  • mark the class as abstract, or
  • provide a 'noSuchMethod' implementation.

class RecordLinux extends RecordPlatform { ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/record_platform_interface-1.3.0/lib/src/record_platform_interface.dart:55:29: Context: 'RecordPlatform.startStream' is defined here. Future<Stream<Uint8List>> startStream( ^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:156:15: Error: The method 'ScreenBrightness' isn't defined for the class '_MaterialVideoControlsState'.

  • '_MaterialVideoControlsState' is from 'package:openim_common/src/widgets/custom_mk_controls.dart' ('openim_common/lib/src/widgets/custom_mk_controls.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ScreenBrightness'. await ScreenBrightness().resetScreenBrightness(); ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:318:9: Error: Couldn't find constructor 'VolumeController'. VolumeController().showSystemUI = false; ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:319:30: Error: Couldn't find constructor 'VolumeController'. _volumeValue = await VolumeController().getVolume(); ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:320:9: Error: Couldn't find constructor 'VolumeController'. VolumeController().listener((value) { ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:332:34: Error: The method 'ScreenBrightness' isn't defined for the class '_MaterialVideoControlsState'.
  • '_MaterialVideoControlsState' is from 'package:openim_common/src/widgets/custom_mk_controls.dart' ('openim_common/lib/src/widgets/custom_mk_controls.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ScreenBrightness'. _brightnessValue = await ScreenBrightness().current; ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:333:9: Error: The method 'ScreenBrightness' isn't defined for the class '_MaterialVideoControlsState'.
  • '_MaterialVideoControlsState' is from 'package:openim_common/src/widgets/custom_mk_controls.dart' ('openim_common/lib/src/widgets/custom_mk_controls.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ScreenBrightness'. ScreenBrightness().onCurrentBrightnessChanged.listen((value) { ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:346:7: Error: Couldn't find constructor 'VolumeController'. VolumeController().setVolume(value); ^^^^^^^^^^^^^^^^ openim_common/lib/src/widgets/custom_mk_controls.dart:366:13: Error: The method 'ScreenBrightness' isn't defined for the class '_MaterialVideoControlsState'.
  • '_MaterialVideoControlsState' is from 'package:openim_common/src/widgets/custom_mk_controls.dart' ('openim_common/lib/src/widgets/custom_mk_controls.dart'). Try correcting the name to the name of an existing method, or defining a method named 'ScreenBrightness'. await ScreenBrightness().setScreenBrightness(value); ^^^^^^^^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Ascreen_brightness%2Fscreen_brightness.dart; message=StandardFileSystem only supports file:* and data:* URIs) #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:45) #1 asFileUri (package:vm/kernel_front_end.dart:800) #2 writeDepfile (package:vm/kernel_front_end.dart:940) #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:709) #4 starter (package:frontend_server/starter.dart:109) #5 main (file:///C:/b/s/w/ir/x/w/sdk/pkg/frontend_server/bin/frontend_server_starter.dart:13)

Target kernel_snapshot_program failed: Exception

FAILURE: Build failed with an exception.

  • Where: Script 'E:\Fvm\versions\versions\3.27.4\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1685

  • What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'.

Process 'command 'E:\Fvm\versions\versions\3.27.4\bin\flutter.bat'' 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 59s Running Gradle task 'assembleRelease'... 180.7s Gradle task assembleRelease failed with exit code 1

Screenshots Link

No response

shiange avatar Jun 25 '25 09:06 shiange