stacked icon indicating copy to clipboard operation
stacked copied to clipboard

[Stacked Themes] The plugin `flutter_statusbarcolor_ns` uses a deprecated version of the Android embedding

Open ajnaf opened this issue 5 years ago • 19 comments

The plugin flutter_statusbarcolor_ns 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. i was going to open an issue to the author but he closed the issue section. fyi this happened in the latest flutter update 2.5

ajnaf avatar Sep 11 '21 10:09 ajnaf

having the same issue!

dzab5 avatar Sep 13 '21 09:09 dzab5

same issue, should we open ticket on flutter_statusbarcolor_ns side ?

azazadev avatar Sep 14 '21 13:09 azazadev

yes go ahead

dzab5 avatar Sep 14 '21 14:09 dzab5

yes go ahead

not able to create ticket on git repo flutter_statusbarcolor_ns

azazadev avatar Sep 15 '21 08:09 azazadev

having same issue

anuragsoni300 avatar Sep 17 '21 10:09 anuragsoni300

have same issue :( after update to last version

sssergei avatar Sep 21 '21 22:09 sssergei

any news ? it is possible to copy the flutter_statusbarcolor_ns package source file to stacked package ? it is only 1 file with 74 line https://github.com/Sameerkash/flutter_statusbarcolor/tree/master/lib

azazadev avatar Sep 26 '21 15:09 azazadev

I find where it is in my code. I am using the stacked_themes: ^0.3.2

sssergei avatar Sep 26 '21 17:09 sssergei

Fix seems to be done on a fork of flutter_statusbarcolor: https://github.com/takeshishimada/flutter_statusbarcolor/tree/debug

Unfortunately, overriding the dependency in pubspec.yaml doesn't seem to work any better

pubspec.yaml

dependency_overrides:
  flutter_statusbarcolor_ns:
    git:
      url: https://github.com/takeshishimada/flutter_statusbarcolor
      ref: debug

Still having the error on pub get

Running "flutter pub get" in myapp...  
Warning: You are using these overridden dependencies:
! flutter_statusbarcolor_ns 0.3.0-nullsafety from git https://github.com/takeshishimada/flutter_statusbarcolor at 241993

Running "flutter pub get" in myapp...                   1 424ms
The plugins `flutter_statusbarcolor_ns` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them 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.

Also tried to add in dependency section, but it raise a conflict as expected.

Hope someone succeeds where I fail and get us in touch ;)

emri99 avatar Oct 08 '21 01:10 emri99

@hurbes can we look at this?

FilledStacks avatar Oct 10 '21 10:10 FilledStacks

Same issue here. Is there any workaround?

sqrg avatar Oct 12 '21 18:10 sqrg

Wait for 0.3.7 to be released or maybe use git dependency format for this package in pubspec to get the fix from above merged PR

emri99 avatar Oct 12 '21 19:10 emri99

The new version of flutter_statusbarcolor_ns is out and fixes this. @FilledStacks @hurbes

myklll avatar Oct 27 '21 19:10 myklll

The new version of flutter_statusbarcolor_ns is out and fixes this. @FilledStacks @hurbes

Yes. So basically to anyone still struggling with this, just add this to your pubspec.yaml

dependency_overrides:
    flutter_statusbarcolor_ns: ^0.4.0

luisredondo avatar Nov 07 '21 18:11 luisredondo

The new version of flutter_statusbarcolor_ns is out and fixes this. @FilledStacks @hurbes

Yes. So basically to anyone still struggling with this, just add this to your pubspec.yaml

dependency_overrides:
    flutter_statusbarcolor_ns: ^0.4.0

Thank you. This filled my issue. But at the same time displayed a warning message:

Warning: You are using these overridden dependencies: ! flutter_statusbarcolor_ns 0.4.0

I guess this warning was displayed to notify me of my action

Edamijueda avatar Nov 11 '21 13:11 Edamijueda

any news to release this please ? and also moving provider to latest 6.0.1

azazadev avatar Nov 17 '21 13:11 azazadev

@azazadev upgrade your stacked_themes package. If you are still facing an issue upgrade then upgrade your kotlin version in build.gradle ext.kotlin_version = '1.4.20'

surveshoeb avatar Dec 30 '21 19:12 surveshoeb

This will be fixed soon. Thanks for being patient with me 😄

FilledStacks avatar Jan 18 '22 14:01 FilledStacks

Fixed on version: >= 0.3.7

Eimen2018 avatar Apr 27 '22 10:04 Eimen2018