Skip to content

[Bug]: No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info #1270

Description

@CodeDoctorDE

Platform

Linux (Fedora 36)

Plugin

package_info_plus

Version

3.0.0

Flutter SDK

3.3.4

Steps to reproduce

  1. Upgrade to the latest package_info_plus 3.0.0
  2. Use await PackageInfo.fromPlatform()

After downgrading to 2.0.0, everything works.

I cloned the example from the main branch and everything works there.

Code Sample

Future<bool> hasNewerVersion() async {
    final packageInfo = await PackageInfo.fromPlatform();
    return packageInfo.version != kVersion;
}
const kVersion = "1.0.0";

Logs

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)
#0      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:294
<asynchronous suspension>
#1      MethodChannel.invokeMapMethod
package:flutter/…/services/platform_channel.dart:499
<asynchronous suspension>
#2      MethodChannelPackageInfo.getAll
package:package_info_plus_platform_interface/method_channel_package_info.dart:13
<asynchronous suspension>
#3      PackageInfo.fromPlatform
package:package_info_plus/package_info_plus.dart:41
<asynchronous suspension>
#4      SettingsCubit.hasNewerVersion
package:butterfly/cubits/settings.dart:424
<asynchronous suspension>
#5      _ProjectPageState._showIntroduction
package:butterfly/views/main.dart:216
<asynchronous suspension>

Flutter Doctor

[✓] Flutter (Channel stable, 3.3.4, on Fedora Linux 36 (Workstation Edition) 5.19.15-201.fc36.x86_64, locale de_DE.UTF-8)
    • Flutter version 3.3.4 on channel stable at /home/jan-andrej/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision eb6d86ee27 (vor 2 Wochen), 2022-10-04 22:31:45 -0700
    • Engine revision c08d7d5efc
    • Dart version 2.18.2
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /home/jan-andrej/Android/Sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at:
      /home/jan-andrej/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • clang version 14.0.5 (Fedora 14.0.5-1.fc36)
    • cmake version 3.22.2
    • ninja version 1.10.2
    • pkg-config version 1.8.0

[✓] Android Studio (version 2021.3)
    • Android Studio at /home/jan-andrej/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335
    • 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 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at /home/jan-andrej/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/222.4345.14
    • Flutter plugin version 70.2.5
    • Dart plugin version 222.4345.14

[✓] VS Code (version 1.72.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.50.0

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-x64 • Fedora Linux 36 (Workstation Edition) 5.19.15-201.fc36.x86_64

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

! Doctor found issues in 1 category.

Checklist before submitting a bug

  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestIssues taking part in HacktoberfestbugSomething isn't workinglinuxpackage_info_plusstuff related to package_info_plus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions