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

🐛 [firebase_messaging, firestore] uses or overrides a deprecated API. on Android #8073

Closed
Tom3652 opened this issue Feb 11, 2022 · 32 comments
Assignees
Labels
platform: android Issues / PRs which are specifically for Android. plugin: messaging resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working

Comments

@Tom3652
Copy link

Tom3652 commented Feb 11, 2022

Bug report

Describe the bug

In the title but for many FlutterFire plugins, please see the list below.
My build.gradle file :

minSdkVersion 24
targetSdkVersion 31

This was fixed for cloud_functions in #7446 but not for all plugins.

Steps to reproduce

Steps to reproduce the behavior:

Run an app on Android after flutter clean using the following plugins :

  • firebase_analytics
  • firebase_messaging
  • firebase_crashlytics
  • firebase_dynamic_links

Expected behavior

Not have these warnings despite they are not blocking anything (for now)


Additional context

Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.1.0/android/src/main/java/io/flutter/plugins/firebase/analytics/FlutterFirebaseAnalyticsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_analytics-9.1.0/android/src/main/java/io/flutter/plugins/firebase/analytics/FlutterFirebaseAnalyticsPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_crashlytics-2.5.1/android/src/main/java/io/flutter/plugins/firebase/crashlytics/FlutterFirebaseCrashlyticsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-4.0.6/android/src/main/java/io/flutter/plugins/firebase/dynamiclinks/FlutterFirebaseDynamicLinksPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_dynamic_links-4.0.6/android/src/main/java/io/flutter/plugins/firebase/dynamiclinks/FlutterFirebaseDynamicLinksPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.2.6/android/src/main/java/io/flutter/plugins/firebase/messaging/JobIntentService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.1, on macOS 12.2 21D49 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Dart SDK 2.16.1
Flutter SDK 2.10.1
myappname 1.0.0+1

dependencies:
- app_settings 4.1.1 [flutter]
- app_tracking_transparency 2.0.2+1 [flutter]
- apple_maps_flutter 1.0.3 [flutter]
- audioplayers 0.20.1 [uuid path_provider http flutter flutter_web_plugins]
- auto_size_text 3.0.0 [flutter]
- badges 2.0.2 [flutter]
- cached_network_image 3.2.0 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
- camera 0.9.4+11 [camera_platform_interface camera_web flutter pedantic quiver flutter_plugin_android_lifecycle]
- clipboard 0.1.3 [flutter]
- cloud_functions 3.2.7 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- confetti 0.6.0 [flutter vector_math]
- connectivity_plus 2.2.0 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
- country_code_picker 2.0.2 [flutter modal_bottom_sheet collection universal_platform]
- crypto 3.0.1 [collection typed_data]
- cupertino_back_gesture 0.1.0 [flutter]
- cupertino_icons 1.0.4
- device_display_brightness 0.0.6 [flutter]
- disk_space 0.2.1 [flutter]
- emoji_picker_flutter 1.1.1 [flutter shared_preferences]
- extended_image 6.0.1 [extended_image_library flutter meta]
- extended_tabs 2.3.0 [flutter]
- firebase_analytics 9.1.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 3.3.7 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 1.12.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 2.5.1 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_database 9.0.6 [firebase_core firebase_core_platform_interface firebase_database_platform_interface firebase_database_web flutter]
- firebase_dynamic_links 4.0.6 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_messaging 11.2.6 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_performance 0.8.0+5 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter]
- firebase_storage 10.2.7 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta typed_data vector_math sky_engine]
- flutter_app_badger 1.3.0 [flutter]
- flutter_arc_text 0.5.0 [characters flutter]
- flutter_contacts 1.1.2 [flutter]
- flutter_facebook_auth 4.0.1 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web]
- flutter_ffmpeg 0.4.2 [flutter]
- flutter_image_compress 1.1.0 [flutter]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path typed_data vector_math]
- flutter_native_text_input 2.1.0 [flutter]
- flutter_staggered_grid_view 0.6.1 [flutter]
- flutter_svg 1.0.3 [flutter meta path_drawing vector_math xml]
- geocoding 2.0.2 [flutter geocoding_platform_interface]
- geolocator 8.1.1 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
- google_fonts 2.3.1 [flutter http path_provider crypto]
- google_maps_flutter 2.1.1 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
- google_mobile_ads 1.1.0 [meta flutter]
- google_sign_in 5.2.3 [flutter google_sign_in_platform_interface google_sign_in_web]
- hive 2.0.5 [meta crypto]
- hive_flutter 1.1.0 [flutter hive path_provider path]
- http 0.13.4 [async http_parser meta path]
- image_editor 1.0.2 [flutter]
- in_app_purchase 2.0.1 [flutter in_app_purchase_platform_interface in_app_purchase_android in_app_purchase_storekit]
- in_app_review 2.0.4 [flutter in_app_review_platform_interface]
- logger 1.1.0
- package_info_plus 1.3.0 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
- path 1.8.0
- path_provider 2.0.9 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
- percent_indicator 4.0.0 [flutter]
- perfect_volume_control 1.0.5 [flutter]
- permission_handler 8.3.0 [flutter meta permission_handler_platform_interface]
- photo_manager 2.0.0-dev.7 [flutter]
- provider 6.0.2 [collection flutter nested]
- pull_to_refresh 2.0.0 [flutter]
- record 3.0.2 [flutter record_platform_interface record_web]
- rive 0.8.1 [collection flutter graphs http meta]
- screen_capture_event 1.0.0+1 [flutter permission_handler]
- scrollable_positioned_list 0.2.3 [flutter collection]
- share_plus 3.0.4 [meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
- shared_preferences 2.0.13 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- sign_in_with_apple 3.3.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web]
- sliver_tools 0.2.5 [flutter]
- sqflite 2.0.2 [flutter sqflite_common path]
- translator 0.1.7 [http]
- url_launcher 6.0.20 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 3.0.5 [crypto]
- video_compress 3.1.1 [flutter]
- video_player 2.2.18 [flutter video_player_android video_player_avfoundation video_player_platform_interface video_player_web html]
- video_thumbnail 0.4.3 [flutter]
- visibility_detector 0.2.2 [flutter]

dev dependencies:
- build_runner 2.1.7 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- flutter_lints 1.0.4 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph typed_data]
- hive_generator 1.1.2 [build source_gen hive analyzer source_helper]

transitive dependencies:
- _fe_analyzer_shared 34.0.0 [meta]
- analyzer 3.2.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- args 2.3.0
- async 2.8.2 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- build 2.2.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
- build_runner_core 7.2.3 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.1.4 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface]
- camera_platform_interface 2.1.5 [cross_file flutter plugin_platform_interface stream_transform]
- camera_web 0.2.1+2 [camera_platform_interface flutter flutter_web_plugins pedantic stream_transform]
- characters 1.2.0
- charcode 1.3.1
- checked_yaml 2.0.1 [json_annotation source_span yaml]
- cli_util 0.3.5 [meta path]
- clock 1.1.0
- cloud_functions_platform_interface 5.0.21 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.2.7 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- code_builder 4.1.0 [built_collection built_value collection matcher meta]
- collection 1.15.0
- connectivity_plus_linux 1.2.0 [flutter connectivity_plus_platform_interface meta nm]
- connectivity_plus_macos 1.2.1 [connectivity_plus_platform_interface flutter]
- connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface]
- connectivity_plus_web 1.2.0 [connectivity_plus_platform_interface flutter_web_plugins flutter]
- connectivity_plus_windows 1.2.0 [connectivity_plus_platform_interface flutter]
- convert 3.0.1 [typed_data]
- cross_file 0.3.2 [flutter js meta]
- csslib 0.17.1 [source_span]
- dart_style 2.2.1 [analyzer args path pub_semver source_span]
- dbus 0.6.8 [args ffi meta xml]
- extended_image_library 3.1.2 [crypto flutter http_client_helper path path_provider]
- fake_async 1.2.0 [clock collection]
- ffi 1.1.2
- file 6.1.2 [meta path]
- firebase 9.0.2 [http http_parser js]
- firebase_analytics_platform_interface 3.0.5 [firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.4.0+6 [firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_auth_platform_interface 6.1.11 [firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 3.3.7 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_core_platform_interface 4.2.4 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.5.4 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.1.13 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_platform_interface 0.2.0+5 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_web 0.2.0+5 [firebase_core firebase_core_web firebase_database_platform_interface flutter flutter_web_plugins js]
- firebase_dynamic_links_platform_interface 0.2.0+5 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 3.1.6 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.2.7 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- firebase_performance_platform_interface 0.1.0+5 [firebase_core flutter plugin_platform_interface]
- firebase_performance_web 0.1.0+5 [firebase firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins js]
- firebase_storage_platform_interface 4.0.14 [collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.2.8 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
- fixnum 1.0.0
- flutter_blurhash 0.6.0 [flutter meta pedantic]
- flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
- flutter_facebook_auth_platform_interface 3.0.1 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 3.0.0+1 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- flutter_plugin_android_lifecycle 2.0.5 [flutter]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math]
- frontend_server_client 2.1.2 [async path]
- geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- geolocator_android 3.0.2 [flutter geolocator_platform_interface]
- geolocator_apple 2.1.0 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.0.3 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 2.1.4 [flutter flutter_web_plugins geolocator_platform_interface]
- geolocator_windows 0.1.0 [flutter geolocator_platform_interface]
- glob 2.0.2 [async collection file path string_scanner]
- google_maps_flutter_platform_interface 2.1.5 [collection flutter plugin_platform_interface stream_transform]
- google_sign_in_platform_interface 2.1.1 [flutter quiver]
- google_sign_in_web 0.10.0+4 [flutter flutter_web_plugins google_sign_in_platform_interface js pedantic]
- graphs 2.1.0 [collection]
- html 0.15.0 [csslib source_span]
- http_client_helper 2.0.2 [http]
- http_multi_server 3.2.0 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- in_app_purchase_android 0.2.2+1 [collection flutter in_app_purchase_platform_interface json_annotation]
- in_app_purchase_platform_interface 1.3.1 [flutter plugin_platform_interface]
- in_app_purchase_storekit 0.2.1 [collection flutter in_app_purchase_platform_interface json_annotation meta]
- in_app_review_platform_interface 2.0.3 [flutter url_launcher plugin_platform_interface platform]
- intl 0.17.0 [clock path]
- io 1.0.3 [meta path string_scanner]
- js 0.6.3
- json_annotation 4.4.0 [meta]
- lints 1.0.1
- logging 1.0.2
- matcher 0.12.11 [stack_trace]
- material_color_utilities 0.1.3
- meta 1.7.0
- mime 1.0.1
- modal_bottom_sheet 2.0.0 [flutter]
- nested 1.0.0 [flutter]
- nm 0.4.4 [dbus]
- octo_image 1.0.1 [flutter flutter_blurhash]
- package_config 2.0.2 [path]
- package_info_plus_linux 1.0.3 [package_info_plus_platform_interface flutter path]
- package_info_plus_macos 1.3.0 [flutter]
- package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
- package_info_plus_web 1.0.4 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
- package_info_plus_windows 1.0.4 [package_info_plus_platform_interface ffi flutter win32]
- path_drawing 1.0.0 [vector_math meta path_parsing flutter]
- path_parsing 1.0.0 [vector_math meta]
- path_provider_android 2.0.11 [flutter path_provider_platform_interface]
- path_provider_ios 2.0.7 [flutter path_provider_platform_interface]
- path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_macos 2.0.5 [flutter path_provider_platform_interface]
- path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
- path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
- pedantic 1.11.1
- permission_handler_platform_interface 3.7.0 [flutter meta plugin_platform_interface]
- petitparser 4.4.0 [meta]
- platform 3.1.0
- plugin_platform_interface 2.1.2 [meta]
- pool 1.5.0 [async stack_trace]
- process 4.2.4 [file path platform]
- pub_semver 2.1.0 [collection meta]
- pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.0.1+1 [matcher]
- record_platform_interface 0.2.0 [flutter plugin_platform_interface]
- record_web 0.2.1 [flutter flutter_web_plugins record_platform_interface]
- rxdart 0.27.3
- share_plus_linux 2.0.4 [share_plus_platform_interface file flutter meta url_launcher]
- share_plus_macos 2.0.2 [share_plus_platform_interface flutter]
- share_plus_platform_interface 2.0.1 [flutter meta mime plugin_platform_interface]
- share_plus_web 2.0.4 [share_plus_platform_interface url_launcher flutter flutter_web_plugins meta]
- share_plus_windows 2.0.3 [share_plus_platform_interface flutter meta url_launcher]
- shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface]
- shared_preferences_ios 2.0.10 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.0.0 [flutter]
- shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta]
- sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js]
- sky_engine 0.0.99
- source_gen 1.2.1 [analyzer async build dart_style glob meta path source_span yaml]
- source_helper 1.3.1 [analyzer collection source_gen]
- source_span 1.8.1 [collection path term_glyph]
- sqflite_common 2.2.0 [synchronized path meta]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- stream_transform 2.0.0
- string_scanner 1.1.0 [charcode source_span]
- synchronized 3.0.0
- term_glyph 1.2.0
- test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timing 1.0.0 [json_annotation]
- typed_data 1.3.0 [collection]
- universal_platform 1.0.0+1
- url_launcher_android 6.0.15 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.0.15 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.0.0 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.0.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.0.5 [flutter plugin_platform_interface]
- url_launcher_web 2.0.8 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.0.0 [flutter url_launcher_platform_interface]
- vector_math 2.1.1
- video_player_android 2.2.17 [flutter video_player_platform_interface]
- video_player_avfoundation 2.2.18 [flutter video_player_platform_interface]
- video_player_platform_interface 5.0.2 [flutter plugin_platform_interface]
- video_player_web 2.0.7 [flutter flutter_web_plugins video_player_platform_interface]
- watcher 1.0.1 [async path]
- web_socket_channel 2.1.0 [async crypto stream_channel]
- win32 2.3.11 [ffi]
- xdg_directories 0.2.0+1 [meta path process]
- xml 5.3.1 [collection meta petitparser]
- yaml 3.1.0 [collection source_span string_scanner]

@Tom3652 Tom3652 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Feb 11, 2022
@darshankawar
Copy link

A similar for core, auth and analytics was recently fixed and merged: #3876 (comment)

Another similar from firebase_messaging: #7702

@darshankawar darshankawar added platform: android Issues / PRs which are specifically for Android. plugin: analytics plugin: crashlytics plugin: dynamic_links plugin: messaging triage Issue is currently being triaged. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Feb 14, 2022
@Tom3652
Copy link
Author

Tom3652 commented Apr 5, 2022

Just adding :

Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_in_app_messaging-0.6.0+10/android/src/main/java/io/flutter/plugins/firebase/inappmessaging/FirebaseInAppMessagingPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Now that i am also using it.

@bswhite1
Copy link

bswhite1 commented May 3, 2022

Tasks.call() is still present in firebase_core, cloud_firestore, firebase_analytics, firebase_crashlytics, firebase_performance

@Tom3652
Copy link
Author

Tom3652 commented May 4, 2022

I must say that Tasks.call() is not present in any of the packages you mentioned for me.
However they are all subject to depecrated API.

I would also add :

Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_app_check-0.0.6+11/android/src/main/java/io/flutter/plugins/firebase/appcheck/FlutterFirebaseAppCheckPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Even more weird, i have got :

Note: /Users/foxtom/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_database-9.0.13/android/src/main/java/io/flutter/plugins/firebase/database/FirebaseDatabasePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

When i don't use firebase_database in this project in my pubspec.yaml :/

@jurgenramirez
Copy link

jurgenramirez commented Aug 1, 2022

how can i remove this warning

Development/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging-11.4.4/android/src/main/java/io/flutter/plugins/firebase/messaging/JobIntentService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@russellwheatley
Copy link
Member

russellwheatley commented Aug 23, 2022

I think I've nearly addressed all uses of deprecated android API.

Performance deprecations are addressed in this PR:#9334.

The last outstanding deprecation is the FirebaseMessaging JobIntentService which uses the deprecated AsyncTask API.

@Tom3652
Copy link
Author

Tom3652 commented Oct 18, 2022

Thanks for your work @russellwheatley !

With the latest releases from today, i have depe :

  • firebase_database: 10.0.1 : deprecated API
  • cloud_functions: 4.0.1: deprecated API
  • firebase_dynamic_links: 5.0.1 : unsafe operations
  • firebase_performance: 0.9.0+1 : deprecated API

Other plugins i am using with their latest version to show they are fine :

  • firebase_core: ^2.0.0
  • firebase_crashlytics: ^3.0.0
  • firebase_auth: ^4.0.0
  • firebase_storage: ^11.0.0
  • firebase_in_app_messaging: ^0.7.0
  • firebase_app_check: ^0.1.0
  • firebase_ml_model_downloader: ^0.2.0
  • firebase_messaging: ^14.0.0

@JoshTheMenace
Copy link

Getting the same issue...

@lorydi3001
Copy link

firebase_messaging 14.6.8, I have the same issue.

@doppio
Copy link

doppio commented Sep 30, 2023

Please add a thumbs up to the issue so it can be prioritized, rather than polluting the comments with "me too" and "still an issue".

@denisano
Copy link

Same issue for firebase_messaging-14.7.2
Testing on Android 9.

Some params from build.gradle:

        minSdkVersion 28 
        targetSdkVersion 31 
        compileSdkVersion 33
        jvmTarget = '1.8'
        multiDexEnabled true

@russellwheatley russellwheatley changed the title 🐛 [firebase_messaging] uses or overrides a deprecated API. on Android 🐛 [firebase_messaging, firestore] uses or overrides a deprecated API. on Android Nov 2, 2023
@jtavio
Copy link

jtavio commented Nov 2, 2023

Same issue for cloud_firestore-4.12.2
all version android
'/Users/gregspinetti/.pub-cache/hosted/pub.dev/cloud_firestore-4.12.2/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestorePlugin.java:456: warning: [deprecation] setIndexConfiguration(String) in FirebaseFirestore has been deprecated
Tasks.await(firestore.setIndexConfiguration(indexConfiguration));
^
/Users/gregspinetti/.pub-cache/hosted/pub.dev/cloud_firestore-4.12.2/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java:391: warning: [unchecked] unchecked cast
List<Map<String, Object>> queries = (List<Map<String, Object>>) map.get("queries");
^
required: List<Map<String,Object>>
found: Object
/Users/gregspinetti/.pub-cache/hosted/pub.dev/cloud_firestore-4.12.2/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java:431: warning: [unchecked] unchecked cast
Filter filter = filterFromJson((Map<String, Object>) parameters.get("filters"));
^
required: Map<String,Object>
found: Object
/Users/gregspinetti/.pub-cache/hosted/pub.dev/cloud_firestore-4.12.2/android/src/main/java/io/flutter/plugins/firebase/firestore/utils/PigeonParser.java:295: warning: [unchecked] unchecked cast
List<Map<String, Object>> queries = (List<Map<String, Object>>) map.get("queries");
^
required: List<Map<String,Object>>
found: Object
'
flutter pub deps -- --style=compact
Dart SDK 3.1.4
Flutter SDK 3.13.8
plurall 5.5.4+20230740

dependencies:

  • adjust_sdk 4.35.2 [flutter meta]
  • animate_do 2.1.0 [flutter]
  • another_stepper 1.1.5 [flutter]
  • app_tracking_transparency 2.0.4 [flutter]
  • bloc 8.1.2 [meta]
  • clevertap_plugin 1.6.0 [flutter]
  • cloud_firestore 4.12.2 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
  • collection 1.17.2
  • crypto 3.0.3 [typed_data]
  • cryptography 2.5.0 [collection crypto js meta typed_data]
  • cupertino_icons 1.0.6
  • custom_marker 1.0.0 [flutter flutter_cache_manager google_maps_flutter flutter_svg]
  • dart_ipify 1.1.1 [http]
  • device_info_plus 9.1.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry]
  • device_information 0.0.4 [flutter]
  • dio 4.0.6 [http_parser path]
  • dotted_border 2.1.0 [flutter path_drawing]
  • easy_mask 2.0.1 [flutter]
  • encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle]
  • equatable 2.0.5 [collection meta]
  • file_picker 5.3.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
  • firebase_core 2.21.0 [firebase_core_platform_interface firebase_core_web flutter meta]
  • firebase_crashlytics 3.4.1 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
  • firebase_remote_config 4.3.1 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
  • flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine]
  • flutter_bloc 8.1.3 [bloc flutter provider]
  • flutter_cached_pdfview 0.4.2 [flutter flutter_pdfview flutter_cache_manager path_provider path]
  • flutter_keychain 2.4.0 [flutter]
  • flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math web]
  • flutter_native_splash 2.2.16 [args flutter flutter_web_plugins js html image meta path universal_io xml yaml]
  • flutter_pdfview 1.2.9 [flutter]
  • flutter_secure_storage 7.0.1 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta]
  • flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml]
  • formz 0.6.1 [meta]
  • geolocator 9.0.2 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
  • get_ip_address 0.0.5 [http]
  • google_fonts 3.0.1 [flutter http path_provider crypto]
  • intl 0.18.1 [clock meta path]
  • intl_phone_number_input 0.7.3+1 [flutter libphonenumber_plugin equatable collection]
  • just_the_tooltip 0.0.12 [flutter]
  • local_auth 2.1.7 [flutter local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows]
  • local_session_timeout 2.3.2 [flutter]
  • location_geocoder 1.0.5 [flutter]
  • metamap_plugin_flutter 4.1.5 [flutter]
  • package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32]
  • page_transition 2.1.0 [flutter]
  • path_provider 2.1.1 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
  • permission_handler 10.4.5 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface]
  • qr_code_scanner 1.0.1 [js flutter flutter_web_plugins]
  • shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
  • shimmer 2.0.0 [flutter]
  • sizer 2.0.15 [universal_io flutter]
  • smooth_page_indicator 1.1.0 [flutter]
  • sms_autodetect 1.0.9 [flutter]
  • sqflite 2.3.0 [flutter sqflite_common path]
  • step_progress_indicator 1.0.2 [flutter]
  • thread 0.2.2 [async_signal events_emitter uuid]
  • tuple 2.0.2
  • url_launcher 6.1.14 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
  • uuid 3.0.7 [crypto]
  • webview_flutter 3.0.4 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]
  • whatsapp_unilink 2.1.0

dev dependencies:

  • dartdoc 6.2.2 [analyzer args cli_util collection crypto glob html logging markdown meta package_config path pub_semver source_span yaml]
  • flutter_launcher_icons 0.10.0 [args checked_yaml cli_util image json_annotation path yaml]
  • flutter_lints 2.0.3 [lints]
  • flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web]

transitive dependencies:

  • _fe_analyzer_shared 61.0.0 [meta]
  • _flutterfire_internals 1.3.11 [collection firebase_core firebase_core_platform_interface flutter meta]
  • analyzer 5.13.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
  • archive 3.4.6 [crypto path pointycastle]
  • args 2.4.2
  • asn1lib 1.5.0
  • async 2.11.0 [collection meta]
  • async_signal 0.0.3
  • boolean_selector 2.1.1 [source_span string_scanner]
  • characters 1.3.0
  • checked_yaml 2.0.3 [json_annotation source_span yaml]
  • cli_util 0.3.5 [meta path]
  • clock 1.1.1
  • cloud_firestore_platform_interface 6.0.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
  • cloud_firestore_web 3.8.3 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
  • convert 3.1.1 [typed_data]
  • csslib 1.0.0 [source_span]
  • device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface]
  • events_emitter 0.5.2 [rxdart]
  • fake_async 1.3.1 [clock collection]
  • ffi 2.1.0
  • file 6.1.4 [meta path]
  • firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
  • firebase_core_web 2.8.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
  • firebase_crashlytics_platform_interface 3.6.9 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
  • firebase_remote_config_platform_interface 1.4.9 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
  • firebase_remote_config_web 1.4.9 [firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins js]
  • flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid]
  • flutter_plugin_android_lifecycle 2.0.16 [flutter]
  • flutter_secure_storage_linux 1.2.0 [flutter flutter_secure_storage_platform_interface]
  • flutter_secure_storage_macos 2.0.1 [flutter flutter_secure_storage_platform_interface]
  • flutter_secure_storage_platform_interface 1.0.2 [flutter plugin_platform_interface]
  • flutter_secure_storage_web 1.1.2 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js]
  • flutter_secure_storage_windows 1.1.3 [flutter flutter_secure_storage_platform_interface]
  • flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web]
  • geolocator_android 4.3.1 [flutter geolocator_platform_interface uuid]
  • geolocator_apple 2.3.2 [flutter geolocator_platform_interface]
  • geolocator_platform_interface 4.1.1 [flutter plugin_platform_interface vector_math meta]
  • geolocator_web 2.2.0 [flutter flutter_web_plugins geolocator_platform_interface]
  • geolocator_windows 0.1.3 [flutter geolocator_platform_interface]
  • glob 2.1.2 [async collection file path string_scanner]
  • google_maps 6.3.0 [js js_wrapping meta]
  • google_maps_flutter 2.5.0 [flutter google_maps_flutter_android google_maps_flutter_ios google_maps_flutter_platform_interface google_maps_flutter_web]
  • google_maps_flutter_android 2.5.1 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface stream_transform]
  • google_maps_flutter_ios 2.3.2 [flutter google_maps_flutter_platform_interface stream_transform]
  • google_maps_flutter_platform_interface 2.4.1 [collection flutter plugin_platform_interface stream_transform]
  • google_maps_flutter_web 0.5.4+1 [collection flutter flutter_web_plugins google_maps google_maps_flutter_platform_interface sanitize_html stream_transform]
  • html 0.15.4 [csslib source_span]
  • http 0.13.6 [async http_parser meta]
  • http_parser 4.0.2 [collection source_span string_scanner typed_data]
  • image 3.3.0 [archive meta xml]
  • js 0.6.7 [meta]
  • js_wrapping 0.7.4 [js]
  • json_annotation 4.8.1 [meta]
  • libphonenumber_platform_interface 0.4.1 [flutter plugin_platform_interface]
  • libphonenumber_plugin 0.3.2 [flutter flutter_web_plugins libphonenumber_platform_interface libphonenumber_web]
  • libphonenumber_web 0.3.1 [flutter flutter_web_plugins js libphonenumber_platform_interface]
  • lints 2.1.1
  • local_auth_android 1.0.34 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface]
  • local_auth_ios 1.1.4 [flutter intl local_auth_platform_interface]
  • local_auth_platform_interface 1.0.8 [flutter plugin_platform_interface]
  • local_auth_windows 1.0.10 [flutter local_auth_platform_interface]
  • logging 1.2.0
  • markdown 7.1.1 [args meta]
  • matcher 0.12.16 [async meta stack_trace term_glyph test_api]
  • material_color_utilities 0.5.0 [collection]
  • meta 1.9.1
  • nested 1.0.0 [flutter]
  • package_config 2.1.0 [path]
  • package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
  • path 1.8.3
  • path_drawing 1.0.1 [vector_math meta path_parsing flutter]
  • path_parsing 1.0.1 [vector_math meta]
  • path_provider_android 2.2.0 [flutter path_provider_platform_interface]
  • path_provider_foundation 2.3.1 [flutter path_provider_platform_interface]
  • path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
  • path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface]
  • path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32]
  • permission_handler_android 10.3.6 [flutter permission_handler_platform_interface]
  • permission_handler_apple 9.1.4 [flutter permission_handler_platform_interface]
  • permission_handler_platform_interface 3.12.0 [flutter meta plugin_platform_interface]
  • permission_handler_windows 0.1.3 [flutter permission_handler_platform_interface]
  • petitparser 5.4.0 [meta]
  • platform 3.1.3
  • plugin_platform_interface 2.1.6 [meta]
  • pointycastle 3.7.3 [collection convert js]
  • provider 6.0.5 [collection flutter nested]
  • pub_semver 2.1.4 [collection meta]
  • rxdart 0.27.7
  • sanitize_html 2.1.0 [html meta]
  • shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface]
  • shared_preferences_foundation 2.3.4 [flutter shared_preferences_platform_interface]
  • shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
  • shared_preferences_platform_interface 2.3.1 [flutter plugin_platform_interface]
  • shared_preferences_web 2.2.1 [flutter flutter_web_plugins shared_preferences_platform_interface]
  • shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
  • sky_engine 0.0.99
  • source_span 1.10.0 [collection path term_glyph]
  • sqflite_common 2.5.0 [synchronized path meta]
  • stack_trace 1.11.0 [path]
  • stream_channel 2.1.1 [async]
  • stream_transform 2.1.0
  • string_scanner 1.2.0 [source_span]
  • synchronized 3.1.0
  • term_glyph 1.2.1
  • test_api 0.6.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
  • typed_data 1.3.2 [collection]
  • universal_io 2.2.2 [collection meta typed_data]
  • url_launcher_android 6.1.0 [flutter url_launcher_platform_interface]
  • url_launcher_ios 6.1.5 [flutter url_launcher_platform_interface]
  • url_launcher_linux 3.0.6 [flutter url_launcher_platform_interface]
  • url_launcher_macos 3.0.7 [flutter url_launcher_platform_interface]
  • url_launcher_platform_interface 2.1.5 [flutter plugin_platform_interface]
  • url_launcher_web 2.0.19 [flutter flutter_web_plugins url_launcher_platform_interface]
  • url_launcher_windows 3.0.8 [flutter url_launcher_platform_interface]
  • vector_math 2.1.4
  • watcher 1.1.0 [async path]
  • web 0.1.4-beta
  • webview_flutter_android 2.10.4 [flutter webview_flutter_platform_interface]
  • webview_flutter_platform_interface 1.9.5 [flutter meta plugin_platform_interface]
  • webview_flutter_wkwebview 2.9.5 [flutter path webview_flutter_platform_interface]
  • win32 4.1.4 [ffi]
  • win32_registry 1.1.0 [ffi win32]
  • xdg_directories 1.0.3 [meta path]
  • xml 6.3.0 [collection meta petitparser]
  • yaml 3.1.2 [collection source_span string_scanner]

@ahmed243200
Copy link

Getting the same issue...
image

@fisforfaheem
Copy link

fisforfaheem commented Feb 24, 2024 via email

@kamami
Copy link

kamami commented Feb 28, 2024

Same issue with the latest flutter release

@Tom3652
Copy link
Author

Tom3652 commented Mar 14, 2024

Update 2 years after my initial post regarding all of the FlutterFire products with their latest version at the moment of this comment :

  firebase_core:
  firebase_auth:
  firebase_messaging:
  firebase_analytics:
  firebase_performance:
  firebase_app_check:
  firebase_storage:
  firebase_crashlytics:
  firebase_database:
  firebase_remote_config:
  firebase_in_app_messaging:
  firebase_ml_model_downloader:
  cloud_firestore:
  firebase_app_installations:
  cloud_functions:
  firebase_dynamic_links:

And output :

Note: /Users/foxtom/.pub-cache/hosted/pub.dev/cloud_firestore-4.15.9/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_app_check-0.2.1+18/android/src/main/java/io/flutter/plugins/firebase/appcheck/FlutterFirebaseAppCheckPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_app_installations-0.2.4+18/android/src/main/java/io/flutter/plugins/firebase/installations/firebase_app_installations/FirebaseInstallationsPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_dynamic_links-5.4.18/android/src/main/java/io/flutter/plugins/firebase/dynamiclinks/Utils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/foxtom/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.20/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

So the active warnings are on cloud_firestore: 4.15.9, firebase_app_check: 0.2.1+18, firebase_app_installations: 0.2.4+18, firebase_dynamic_links: 5.4.18 and firebase_messaging: 14.7.20.

@fisforfaheem
Copy link

fisforfaheem commented Mar 15, 2024 via email

@Tom3652
Copy link
Author

Tom3652 commented Mar 16, 2024

I have updated the issue with the current (14/03/2024) packages in warning / errors.
2 years back there were other warnings that are now fixed for a long time.
Today it might be new warnings for the same packages or new packages with new warnings.

@YoungrakSon
Copy link

YoungrakSon commented Mar 22, 2024

same here...
when flutter build app bundle

Note: /Users/youngrakson/.pub-cache/hosted/pub.dev/cloud_firestore-4.15.9/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestorePlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/youngrakson/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.20/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /Users/youngrakson/.pub-cache/hosted/pub.dev/uni_links-0.5.1/android/src/main/java/name/avioli/unilinks/UniLinksPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

@minseok-jeong-gn
Copy link

I don't want to see the error log during apk build....

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/mj/.pub-cache/hosted/pub.dev/firebase_messaging-14.7.20/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

My flutter deps related firebase is below

╰─⠠⠵ flutter pub deps | grep 'firebase'
├── firebase_analytics 10.8.0
│   ├── firebase_analytics_platform_interface 3.9.0
│   │   ├── firebase_core...
│   ├── firebase_analytics_web 0.5.5+12
│   │   ├── firebase_analytics_platform_interface...
│   │   ├── firebase_core...
│   │   ├── firebase_core_web...
│   ├── firebase_core...
│   ├── firebase_core_platform_interface...
├── firebase_core 2.27.1
│   ├── firebase_core_platform_interface 5.0.0
│   ├── firebase_core_web...
├── firebase_core_web 2.12.0
│   ├── firebase_core_platform_interface...
├── firebase_crashlytics 3.4.9
│   ├── firebase_core...
│   ├── firebase_core_platform_interface...
│   ├── firebase_crashlytics_platform_interface 3.6.16
│   │   ├── firebase_core...
├── firebase_messaging 14.7.20
│   ├── firebase_core...
│   ├── firebase_core_platform_interface...
│   ├── firebase_messaging_platform_interface 4.5.28
│   │   │   ├── firebase_core...
│   │   │   ├── firebase_core_platform_interface...
│   │   ├── firebase_core...
│   ├── firebase_messaging_web 3.7.0
│   │   ├── firebase_core...
│   │   ├── firebase_core_web...
│   │   ├── firebase_messaging_platform_interface...
├── firebase_remote_config 4.3.18
│   ├── firebase_core...
│   ├── firebase_core_platform_interface...
│   ├── firebase_remote_config_platform_interface 1.4.26
│   │   ├── firebase_core...
│   ├── firebase_remote_config_web 1.4.26
│   │   ├── firebase_core...
│   │   ├── firebase_core_web...
│   │   ├── firebase_remote_config_platform_interface...

@ManuelRauber
Copy link

@minseok-jeong-gn It's a note, not an error.

But yes, it would be nice, if firebase would not use deprecated APIs.

@russellwheatley Any idea when this will be solved? :)

@MominRaza
Copy link
Contributor

firebase_dynamic_links and firebase_messaging is still showing deprecated warning.

Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: X:\Pub\Cache\hosted\pub.dev\firebase_dynamic_links-5.5.1\android\src\main\java\io\flutter\plugins\firebase\dynamiclinks\Utils.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: X:\Pub\Cache\hosted\pub.dev\firebase_messaging-14.8.1\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

firebase_messaging warning might be fixed with #12580

@russellwheatley
Copy link
Member

firebase_messaging updates have now been merged and will go out in the next release. We will not be updating firebase_dynamic_links as it is itself deprecated. If any future deprecations occur, please file a new issue as all the packages mentioned in this thread have now been updated. Thanks 🙏

@russellwheatley russellwheatley added the resolution: fixed A fix has been merged or is pending merge from a PR. label Apr 15, 2024
@firebase firebase locked and limited conversation to collaborators May 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: android Issues / PRs which are specifically for Android. plugin: messaging resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests