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

MissingPluginException(No implementation found for method initSoundpool on channel pl.ukaszapps/soundpool) #107

Open
gracegyu opened this issue Nov 17, 2022 · 3 comments

Comments

@gracegyu
Copy link

hello. I'm making a game with Flutter and trying to add sound effects using soundpool. However, the following error occurs in the rootBundle.load function.

flutter: ----------------FIREBASE CRASHLYTICS----------------
flutter: MissingPluginException(No implementation found for method initSoundpool on channel pl.ukaszapps/soundpool)
flutter: 
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:160:7)
<asynchronous suspension>
#1      Soundpool._connect (package:soundpool/soundpool.dart:290:20)
<asynchronous suspension>
flutter: ----------------------------------------------------

my code is here

import 'package:soundpool/soundpool.dart';

  Soundpool _pool = Soundpool(streamType: StreamType.notification);
  int soundIdClick;
  soundIdClick = await rootBundle.load("assets/sound/click.mp3").then((ByteData soundData) {
-----> error message
        return _pool.load(soundData);
  });

 //// ......

  void playSoundClick() async {
    if (gSettingData.isSound) await _pool.play(soundIdClick);
  }



@MrCsabaToth
Copy link
Contributor

Is this in debug mode or only in release?

@umanamente
Copy link

I have the same error when building for Windows platform, and it occurs for Debug mode as well.

@eximius313
Copy link

it's because Windows is not yet supported although I see there is some experimental support branch: #46 (comment)

@ukasz123, shouldn't this issue be closed as duplicate of #46 ?

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