MixinNetwork / MixinNetwork/flutter-plugins

desktop_drop 0.5 fails to compile on Android

Open
#373 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
512
Forks
292
Avg merge
15h 8m
Merged PRs (30d)
7

Description

When compiling for an android target I get this error after upgrading to 0.5. The problem does not exist with 0.4.4 so I have downgraded for now.

/Users/muji/git/sos/gui/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:24: error: cannot find symbol
      flutterEngine.getPlugins().add(new one.mixin.desktop.drop.DesktopDropPlugin());
                                                               ^
  symbol:   class DesktopDropPlugin
  location: package one.mixin.desktop.drop
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

BUILD FAILED in 9s

Expected behavior

I expect it to compile on Android.

Version (please complete the following information):

  • Flutter Version: 3.24.3
  • OS: MacOS compiling for Android physical device (Samsung SM325F)
  • plugin: desktop_drop: 0.5.0

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Android build failure with desktop_drop 0.5.0 using the reported Flutter 3.24.3 setup, then inspect GeneratedPluginRegistrant.java and the desktop_drop Android plugin entry point. Done means the Android target compiles without the missing DesktopDropPlugin error, while preserving the working 0.4.4 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, flutter
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.