flutter-plugins
flutter-plugins copied to clipboard
[desktop_drop] flutter run --release error
Hi, I ran into problems running the release mode when using desktop_drop 0.5.0, and this problem also occurs when building apk with flutter.
The release mode run, compiler error.
The debug mode is running, and the compilation succeeds.
Obfuscation is off minifyEnabled false.
Reproduce Steps
Steps to reproduce the behavior:
- run
flutter run --release - build error
android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:19: 错误: 找不到符号
flutterEngine.getPlugins().add(new one.mixin.desktop.drop.DesktopDropPlugin());
^
符号: 类 DesktopDropPlugin
位置: 程序包 one.mixin.desktop.drop
1 个错误
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
Expected behavior
Compile successfully.
Version (please complete the following information):
- Flutter Version: v3.27.4
- OS: build on macOS 15.1.1, run target android.
- plugin: desktop_drop: 0.5.0
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.27.4, on macOS 15.1.1 24B91 darwin-x64, locale zh-Hans-CN)
! Flutter version 3.27.4 on channel [user-branch] at /Users/liurichao/development/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at
https://flutter.dev/setup.
! Upstream repository unknown source is not the same as FLUTTER_GIT_URL
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.97.2)
[✓] Connected device (5 available)