Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uses a deprecated version of the Android embedding. #175

Open
AimanKyo97 opened this issue Sep 20, 2021 · 1 comment
Open

Uses a deprecated version of the Android embedding. #175

AimanKyo97 opened this issue Sep 20, 2021 · 1 comment

Comments

@AimanKyo97
Copy link

I got this while running the project.

The plugin google_map_location_picker uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since
a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

@KriacoesMobile
Copy link

Eu fiz isso enquanto executava o projeto.

O plug-in google_map_location_pickerusa uma versão obsoleta da incorporação do Android. Para evitar falhas inesperadas de tempo de execução ou futuras falhas de compilação, tente ver se este plug-in suporta a incorporação do Android V2. Caso contrário, considere removê-lo, pois uma versão futura do Flutter removerá essas APIs obsoletas. Se você for o autor do plug-in, dê uma olhada nos documentos para migrar o plug-in para a incorporação V2: https://flutter.dev/go/android-plugin-migration .

Same inssue after upgrade dart and flutter version.

LOG:

D:\Development\HalalGuiden>flutter run The plugin google_map_location_picker` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2
embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding:
https://flutter.dev/go/android-plugin-migration.
Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software
rendering with "--enable-software-rendering".
Launching lib\main.dart on sdk gphone x86 in debug mode...
lib/src/controllers/splash_screen_controller.dart:52:26: Error: The method 'configure' isn't defined for the class 'FirebaseMessaging'.

  • 'FirebaseMessaging' is from 'package:firebase_messaging/firebase_messaging.dart' ('/C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_messaging-8.0.0-dev.15/lib/firebase_messaging.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'configure'.
    _firebaseMessaging.configure(
    ^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:432:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:440:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:451:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:463:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:475:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:487:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:499:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:510:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:521:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:532:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/video_player_platform_interface-2.2.0/lib/messages.dart:544:15: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages.dart:96:17: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler(null);
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages.dart:98:17: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages.dart:111:17: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler(null);
    ^^^^^^^^^^^^^^^^^^^^^
    /C:/Users/w_mir/AppData/Local/Pub/Cache/hosted/pub.dartlang.org/wakelock_platform_interface-0.1.0+1/lib/messages.dart:113:17: Error: The method 'setMockMessageHandler' isn't defined for the class 'BasicMessageChannel'.
  • 'BasicMessageChannel' is from 'package:flutter/src/services/platform_channel.dart' ('/D:/DevTools/SDK/flutter/packages/flutter/lib/src/services/platform_channel.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'setMockMessageHandler'.
    channel.setMockMessageHandler((dynamic message) async {
    ^^^^^^^^^^^^^^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\DevTools\SDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'D:\DevTools\SDK\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • 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 33s
Running Gradle task 'assembleDebug'... 34,6s
Exception: Gradle task assembleDebug failed with exit code 1`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants