flutter_background_fetch icon indicating copy to clipboard operation
flutter_background_fetch copied to clipboard

[BUG] Getting many errors on compile time

Open pishguy opened this issue 1 year ago • 5 comments


D:\develop\flutter\.pub-cache\hosted\pub.dartlang.org\background_fetch-1.1.1\android\src\main\java\com\transistorsoft\flutter\backgroundfetch\BackgroundFetchPlugin.java:9: warning: [deprecation] Registrar in Pl
uginRegistry has been deprecated
import io.flutter.plugin.common.PluginRegistry.Registrar;
                                              ^
D:\develop\flutter\.pub-cache\hosted\pub.dartlang.org\background_fetch-1.1.1\android\src\main\java\com\transistorsoft\flutter\backgroundfetch\BackgroundFetchPlugin.java:16: warning: [deprecation] Registrar in P
luginRegistry has been deprecated
    public static void registerWith(Registrar registrar) {
                                    ^
D:\develop\flutter\.pub-cache\hosted\pub.dartlang.org\background_fetch-1.1.1\android\src\main\java\com\transistorsoft\flutter\backgroundfetch\BackgroundFetchPlugin.java:25: warning: [deprecation] PluginRegistra
ntCallback in PluginRegistry has been deprecated
    public static void setPluginRegistrant(PluginRegistry.PluginRegistrantCallback callback) {
                                                         ^
D:\develop\flutter\.pub-cache\hosted\pub.dartlang.org\background_fetch-1.1.1\android\src\main\java\com\transistorsoft\flutter\backgroundfetch\HeadlessTask.java:41: warning: [deprecation] PluginRegistrantCallbac
k in PluginRegistry has been deprecated
    private static PluginRegistry.PluginRegistrantCallback sPluginRegistrantCallback;
                                 ^
D:\develop\flutter\.pub-cache\hosted\pub.dartlang.org\background_fetch-1.1.1\android\src\main\java\com\transistorsoft\flutter\backgroundfetch\HeadlessTask.java:55: warning: [deprecation] PluginRegistrantCallbac
k in PluginRegistry has been deprecated
    static void setPluginRegistrant(PluginRegistry.PluginRegistrantCallback callback) {

pishguy avatar Oct 06 '22 07:10 pishguy

Ignored issue template.

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer / model:
  • Flutter info (flutter info, flutter doctor):
  • Plugin config

To Reproduce Steps to reproduce the behavior: 1. 2. 3. 4.

Debug logs

  • ios XCode logs,
  • Android: $ adb logcat

Additional context Add any other context about the problem here.

christocracy avatar Oct 06 '22 12:10 christocracy

You seem to have a problem with all your plugin, not just this one.

christocracy avatar Oct 06 '22 12:10 christocracy

I got the same error which is Registrar in PluginRegistry has been deprecated.

flutter doctor -v

[√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.19044.1826], locale en-US)
    • Flutter version 3.3.8 on channel stable at C:\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 52b3dc25f6 (29 hours ago), 2022-11-09 12:09:26 +0800
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\xx\AppData\Local\Android\sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30320.27
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.73.1)
    • VS Code at C:\Users\xx\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.25.0

[√] Connected device (4 available)
    • Z92 (mobile)      • 0300422010157888 • android-arm64  • Android 8.0.0 (API 26)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19044.1826]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 107.0.5304.88
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 97.0.1072.69

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

haizadvnet avatar Nov 10 '22 09:11 haizadvnet

I suggest you try the /example app in this repo.

christocracy avatar Nov 10 '22 12:11 christocracy

I would suggest @pishguy to update the java version

haizadvnet avatar Nov 11 '22 01:11 haizadvnet

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Apr 17 '24 01:04 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 01 '24 01:05 github-actions[bot]