[Bug]: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
Please check the following before submitting a new issue.
- [x] I have searched the existing issues.
- [x] I have carefully read the documentation and verified I have added the required platform specific configuration.
Please select affected platform(s)
- [x] Android
- [ ] iOS
- [ ] Windows
Steps to reproduce
Invoke Permission.camera.request()
Expected results
That I can successfully invoke the permission request
Actual results
E/flutter ( 5178):
E/flutter ( 5178): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
E/flutter ( 5178): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:365:7)
E/flutter ( 5178):
Code sample
Here's my widget (this is inside my Build method). It's scoped just to the relevant sections.
return Scaffold(
floatingActionButton: FloatingActionButton(
onPressed: () async {
final status = await Permission.camera.request();
if (!status.isGranted) {
throw Exception('Camera permission denied');
}
},
),
body: Center(
child: Padding(
padding: const EdgeInsets.all(24),
child: Text(
"Camera init failed",
textAlign: TextAlign.center,
),
),
),
);
}
Screenshots or video
Screenshots or video demonstration
[Upload media here]
Version
12.0.1
Flutter Doctor output
[✓] Flutter (Channel stable, 3.35.3, on macOS 26.0 25A354 darwin-arm64) [✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc5) [✓] Xcode - develop for iOS and macOS (Xcode 16.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.3) [✓] VS Code (version 1.104.1) [✓] Connected device (3 available) [✓] Network resources
• No issues found!
+1 I am facing the same issue when I tried it on a Android API 36 emulator (target sdk version of my app) Works fine on android api level 24 (lowest sdk version supported by my app)
+1 same issue
Hi, @mvanbeusekom
What are your thought on that ?
Our production app is stuck on splash screen with this exception, only on release mode. Debug Mode is OK.
-> compileSdk 36
Thanks in advance