Skip to content

[Bug]: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info) #3711

@1016950775

Description

@1016950775

Platform

Android 16

Plugin

package_info_plus

Version

9.0.0

Flutter SDK

3.35.5

Steps to reproduce

项目中已有:package_info_plus: ^9.0.0
并且在main初始化
新增了:
flutter_aliplayer: ^7.8.0
aliplayer_widget: ^7.8.1
打包或者运行就无法执行

Code Sample

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  PackageInfo packageInfo = await PackageInfo.fromPlatform();
  runApp(const MyApp());
}

Logs

E/flutter ( 4778): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info)
E/flutter ( 4778): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:368:7)
E/flutter ( 4778): <asynchronous suspension>
E/flutter ( 4778): #1      MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:570:43)
E/flutter ( 4778): <asynchronous suspension>
E/flutter ( 4778): #2      MethodChannelPackageInfo.getAll (package:package_info_plus_platform_interface/method_channel_package_info.dart:13:17)
E/flutter ( 4778): <asynchronous suspension>
E/flutter ( 4778): #3      PackageInfo.fromPlatform (package:package_info_plus/package_info_plus.dart:82:26)
E/flutter ( 4778): <asynchronous suspension>
E/flutter ( 4778): #4      DeviceUtil.initAppAllInfo (package:easy_learn/common/utils/device_util.dart:35:31)
E/flutter ( 4778): <asynchronous suspension>
E/flutter ( 4778): #5      main (package:easy_learn/main.dart:27:3)
E/flutter ( 4778): <asynchronous suspension>

Flutter Doctor

[√] Flutter (Channel stable, 3.35.5, on Microsoft Windows [版本 10.0.26100.6899], locale zh-CN) [333ms]
    • Flutter version 3.35.5 on channel stable at C:\Users\10169\fvm\versions\3.35.5
    • Upstream repository https://github.com/flutter/flutter.git
    • FLUTTER_GIT_URL = https://github.com/flutter/flutter.git
    • Framework revision ac4e799d23 (5 weeks ago), 2025-09-26 12:05:09 -0700
    • Engine revision d3d45dcf25
    • Dart version 3.9.2
    • DevTools version 2.48.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-lldb-debugging

[√] Windows Version (Windows 11 or higher, 24H2, 2009) [795ms]

[√] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2.1s]
    • Android SDK at C:\Users\10169\AppData\Local\Android\sdk
    • Emulator version 36.1.9.0 (build_id 13823996) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: C:\Program Files\Java\jdk-17\bin\java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.16) [99ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36518.9
    • Windows 10 SDK version 10.0.26100.0

[√] Android Studio (version 2025.1.3) [7ms]
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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 21.0.7+-13880790-b1038.58)

[√] VS Code (version 1.105.1) [6ms]
    • VS Code at C:\Users\10169\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.122.0

[√] Connected device (5 available) [480ms]
    • HLK AL00 (mobile)            • C7Y4C19830000996 • android-arm64  • Android 10 (API 29)
    • sdk gphone64 x86 64 (mobile) • emulator-5554    • android-x64    • Android 16 (API 36) (emulator)
    • Windows (desktop)            • windows          • windows-x64    • Microsoft Windows [版本 10.0.26100.6899]
    • Chrome (web)                 • chrome           • web-javascript • Google Chrome 141.0.7390.108
    • Edge (web)                   • edge             • web-javascript • Microsoft Edge 141.0.3537.99

[√] Network resources [2.1s]
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions