Skip to content

The plugin google_maps_flutter could not be built due to the issue above. #71347

@TomerconDevelopers

Description

@TomerconDevelopers
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:18: error: cannot find symbol
import androidx.lifecycle.DefaultLifecycleObserver;
                         ^
  symbol:   class DefaultLifecycleObserver
  location: package androidx.lifecycle
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:49: error: cannot find symbol
    implements DefaultLifecycleObserver,
               ^
  symbol: class DefaultLifecycleObserver
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapsPlugin.java:19: error: cannot find symbol
import io.flutter.embedding.engine.plugins.lifecycle.FlutterLifecycleAdapter;
                                                    ^
  symbol:   class FlutterLifecycleAdapter
  location: package io.flutter.embedding.engine.plugins.lifecycle
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:110: error: incompatible types: GoogleMapController cannot be converted to LifecycleObserver
    lifecycleProvider.getLifecycle().addObserver(this);
                                                 ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:477: error: incompatible types: GoogleMapController cannot be converted to LifecycleObserver
      lifecycle.removeObserver(this);
                               ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:510: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:518: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:526: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:534: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:542: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:550: error: method does not override or implement a method from a supertype
  @Override
  ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapController.java:552: error: incompatible types: GoogleMapController cannot be converted to LifecycleObserver
    owner.getLifecycle().removeObserver(this);
                                        ^
C:\Users\user\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\google_maps_flutter-1.0.6\android\src\main\java\io\flutter\plugins\goog
lemaps\GoogleMapsPlugin.java:92: error: cannot find symbol
    lifecycle = FlutterLifecycleAdapter.getActivityLifecycle(binding);
                ^
  symbol:   variable FlutterLifecycleAdapter
  location: class GoogleMapsPlugin
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
13 errors

FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get
 full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions