Skip to content

Android Cannot Compile Flutter - Flutter version 3.41.4 #850

@simeonangelov94

Description

@simeonangelov94

Describe your issue. If applicable, add screenshots to help explain your problem.

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/simeonangelov/.pub-cache/hosted/pub.dev/google_mlkit_commons-0.11.0/android/src/main/java/com/google_mlkit_commons/InputImageConverter.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/Users/simeonangelov/.pub-cache/hosted/pub.dev/google_mlkit_object_detection-0.15.1/android/src/main/java/com/google_mlkit_object_detection/ObjectDetector.java:99: error: cannot find symbol
new GenericModelManager.CheckModelIsDownloadedCallback() {
^
symbol: class CheckModelIsDownloadedCallback
location: class GenericModelManager
/Users/simeonangelov/.pub-cache/hosted/pub.dev/google_mlkit_object_detection-0.15.1/android/src/main/java/com/google_mlkit_object_detection/ObjectDetector.java:100: error: method does not override or implement a method from a supertype
@OverRide
^
/Users/simeonangelov/.pub-cache/hosted/pub.dev/google_mlkit_object_detection-0.15.1/android/src/main/java/com/google_mlkit_object_detection/ObjectDetector.java:123: error: method does not override or implement a method from a supertype
@OverRide
^
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':google_mlkit_object_detection: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 26s

Steps to reproduce.

  1. Update flutter to 3.41.4
  2. Run command - flutter build app bundle

What is the expected result?

To create android bundle

Did you try our example app?

No

Is it reproducible in the example app?

Yes

Reproducible in which OS?

Android

Flutter/Dart Version?

3.41.4

Plugin Version?

google_mlkit_object_detection: ^0.15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions