When I try to run the flutter build apk command
C:\Users\Iosef\AppData\Local\Pub\Cache\hosted\pub.dev\audiotagger-2.2.1\android\src\main\java\com\nicolorebaioli\audiotagger\AudiotaggerPlugin.java:53: error: cannot find symbol
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':audiotagger:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Run with --info option to get more log output.
Run with --scan to get full insights.
BUILD FAILED in 1m 34s
Running Gradle task 'assembleRelease'... 94,9s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Consult the error logs above to identify any broken plugins, specifically those containing "error: cannot find symbol..." │
│ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed references to the v1 embedding. │
│ To fix this error, please upgrade your current package's dependencies to latest versions by running flutter pub upgrade. │
│ If that does not work, please file an issue for the problematic plugin(s) here: https://github.com/flutter/flutter/issues │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1
When I try to run the flutter build apk command
C:\Users\Iosef\AppData\Local\Pub\Cache\hosted\pub.dev\audiotagger-2.2.1\android\src\main\java\com\nicolorebaioli\audiotagger\AudiotaggerPlugin.java:53: error: cannot find symbol
public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
^
symbol: class Registrar
location: interface PluginRegistry
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
Execution failed for task ':audiotagger:compileReleaseJavaWithJavac'.
BUILD FAILED in 1m 34s
Running Gradle task 'assembleRelease'... 94,9s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Consult the error logs above to identify any broken plugins, specifically those containing "error: cannot find symbol..." │
│ This issue is likely caused by v1 embedding removal and the plugin's continued usage of removed references to the v1 embedding. │
│ To fix this error, please upgrade your current package's dependencies to latest versions by running
flutter pub upgrade. ││ If that does not work, please file an issue for the problematic plugin(s) here: https://github.com/flutter/flutter/issues │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Gradle task assembleRelease failed with exit code 1