sound_generator icon indicating copy to clipboard operation
sound_generator copied to clipboard

Error building with Flutter 3.29.0

Open gbellini79 opened this issue 1 week ago • 0 comments

After upgrading Flutter to 3.29.0 I receive an error while building with flutter build apk on Windows.

C:\Users\giaco\AppData\Local\Pub\Cache\hosted\pub.dev\sound_generator-0.0.13\android\src\main\java\io\github\mertguner\sound_generator\SoundGeneratorPlugin.java:11: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
  symbol:   class Registrar
  location: interface PluginRegistry
C:\Users\giaco\AppData\Local\Pub\Cache\hosted\pub.dev\sound_generator-0.0.13\android\src\main\java\io\github\mertguner\sound_generator\SoundGeneratorPlugin.java:43: error: cannot find symbol
  public static void registerWith(Registrar registrar) {
                                  ^
  symbol:   class Registrar
  location: class SoundGeneratorPlugin
Note: C:\Users\giaco\AppData\Local\Pub\Cache\hosted\pub.dev\sound_generator-0.0.13\android\src\main\java\io\github\mertguner\sound_generator\SoundGeneratorPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sound_generator:compileReleaseJavaWithJavac'.
> 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 2s

Commenting those two sections in SoundGeneratorPlugin.java it builds and works correctly.

Could this be related to the deprecation of those API in the latest SDK?

Thank you

gbellini79 avatar Feb 18 '25 15:02 gbellini79