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

Please migrate the plugin to the V2 embedding #5

Open
idrats opened this issue Sep 20, 2021 · 3 comments
Open

Please migrate the plugin to the V2 embedding #5

idrats opened this issue Sep 20, 2021 · 3 comments

Comments

@idrats
Copy link

idrats commented Sep 20, 2021

I can not run flutter pub get because of the following error:

The plugin `disk_space` 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.
exit code 0

flutter doctor output:

[✓] Flutter (Channel stable, 2.5.1, on macOS 11.6 20G165 darwin-x64, locale
    ru-RU)
    • Flutter version 2.5.1 at /Users/idrats/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (2 days ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/idrats/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.60.0)
    • VS Code at /Users/idrats/Documents/Программы/Visual Studio
      Code.app/Contents
    • Flutter extension version 3.25.0

[✓] VS Code (version 1.34.0)
    • VS Code at /Users/idrats/Downloads/программы/Visual Studio
      Code.app/Contents
    • Flutter extension version 3.25.0

[✓] Connected device (2 available)
    • iPhone 12 Pro Max (mobile) • A6A1F5A6-92B1-407F-B4BF-49663CBDDE91 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-5 (simulator)
    • Chrome (web)               • chrome                               •
      web-javascript • Google Chrome 93.0.4577.82

• No issues found!
@dariocavada
Copy link

The version on pub.dev is 0.1.1,
The version in the github repo is 0.2.1

Could you please update the version also on pub.dev ?

If I use in flutter the git version in the yaml file it solves the problem of V2 embedding:

  disk_space: 
    git:
      url: https://github.com/mboeddeker/disk_space.git

@techwn
Copy link

techwn commented Nov 15, 2021

yes, I suggest update to pub offcially.

@tom-ludwig
Copy link

@techwn, @dariocavada, @idrats
Since this package hasn't been updated in 2 years and the maintainers haven't responded to any issues or pull requests, I created a new repository: https://github.com/activcoding/disk_space_2. The updated package, which should work, is available here: https://pub.dev/packages/disk_space_2.

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