MissingPluginException(No implementation found for method initSoundpool on channel pl.ukaszapps/soundpool)
gracegyu opened this issue · 3 comments
gracegyu commented
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 commented
Is this in debug mode or only in release?
umanamente commented
I have the same error when building for Windows platform, and it occurs for Debug mode as well.
eximius313 commented
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 ?