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

The plugin background_geolocation_firebase uses a deprecated version of the Android embedding. #23

Open
JinKun-Yong opened this issue Sep 21, 2021 · 9 comments

Comments

@JinKun-Yong
Copy link

Unable to call flutter pub get with background_geolocation_firebase: ^0.2.0

The plugin `background_geolocation_firebase` 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.

Here's my flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.2.1 20D74 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.60.1)
[✓] Connected device (2 available)

• No issues found!

@JinKun-Yong JinKun-Yong changed the title [BUG] The plugin background_geolocation_firebase uses a deprecated version of the Android embedding. Sep 21, 2021
@christocracy
Copy link
Member

I see. It will be upgraded and released soon.

@christocracy
Copy link
Member

Try installing from branch plugin-v2.

pubspec.yaml

dependencies:
  flutter_background_geolocation_firebase:
    git:
      url: https://github.com/transistorsoft/flutter_background_geolocation_firebase.git
      ref:  plugin-v2

@christocracy
Copy link
Member

Hello? Feedback please.

@JinKun-Yong
Copy link
Author

JinKun-Yong commented Sep 25, 2021 via email

@JinKun-Yong
Copy link
Author

Just realised a small correction. I used background_geolocation_firebase instead of flutter_background_geolocation_firebase. Whereas flutter_background_geolocation_firebase: throws a name error

@christocracy
Copy link
Member

You're correct.

@rbarbosas
Copy link

I'm getting the following error with the solution:

"Package doesn't exist (the pubspec for background_geolocation_firebase 1.0.0 from git has version 0.2.0)."

@iDeliverWilhem
Copy link

same with @rbarbosas

@christocracy
Copy link
Member

1.0.0 is published.

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

4 participants