E/flutter (16782): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
When I try to run
Future
// You can request multiple permissions at once.
Map
Permission.camera,
Permission.microphone,
].request();
print(statuses[Permission.camera]);
}
There should be popup for camera and microphone permission
Using permission_handler: ^5.0.0+hotfix.8
AndroidX enabled
android.useAndroidX=true
android.enableJetifier=true
Platform:
Used
flutter clean
flutter run
Still the same error
Also having this, Android only.
Tried:
Same issue.
But if I started brand new project, it works
@TMSantos, @RizanPSTU, have you updated your App to support AndroidX (see also #87)?
@TMSantos looks like you undid AndroidX when you copied back the Android folder into the newly created project.
Please let me know?
hey @mvanbeusekom thanks for replying.
I believe I'm not entirely sure what "converting to androidX" means?
My gradle.properties has indication to use it:
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true
But if I try to convert it using Intellij I get this error:

I think the project is already AndroidX, I don't see any indication to not be, also no differences between your example, or brand new flutter project (which works).
I fixed it finally, @RizanPSTU my problem was simply because MainActivity was missing:
GeneratedPluginRegistrant.registerWith(flutterEngine)
I overrided this method in MainActivity:
configureFlutterEngine
It seems that if you override it, you need to explicitly call this method, not sure if it's your case, but adding this line fixed the problem with permission_handler package.
Other things you can try:
Hope you can fix it, this issue is not related to permission_handler project, but to flutter engine.
have a good day
Problem solved :) You are great :)
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!
hey, this fixed it for me... it was a simple issue of not stopping and restarting the application fully after changing gradle settings in my code https://stackoverflow.com/a/54940371/10432596
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!
Thank you for pointing out the issue. Yes the problem is with flutter_facebook_auth package. My app is having problem with both google_fonts and permission_handler packages due to this Facebook package.
I need all of these packages in my app. How can we "isolate" the facebook login package so it does not effect the other packages?
The packages versions I am using:
permission_handler: ^5.0.1+1
google_fonts: ^1.1.2
Edit:
Having same problem with flutter_login_facebook
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!
In my case problem is occurring due to uses of permission_handler and file_picker plugin in same project.
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!Thank you for pointing out the issue. Yes the problem is with flutter_facebook_auth package. My app is having problem with both google_fonts and permission_handler packages due to this Facebook package.
I need all of these packages in my app. How can we "isolate" the facebook login package so it does not effect the other packages?
The packages versions I am using:
permission_handler: ^5.0.1+1
google_fonts: ^1.1.2Edit:
Having same problem with flutter_login_facebook
Did you get any solution of it ?
With same issue I am struggling, I need to have both packages in the app is permission_handler & file_picker
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!Thank you for pointing out the issue. Yes the problem is with flutter_facebook_auth package. My app is having problem with both google_fonts and permission_handler packages due to this Facebook package.
I need all of these packages in my app. How can we "isolate" the facebook login package so it does not effect the other packages?
The packages versions I am using:
permission_handler: ^5.0.1+1
google_fonts: ^1.1.2
Edit:
Having same problem with flutter_login_facebookDid you get any solution of it ?
With same issue I am struggling, I need to have both packages in the app is permission_handler & file_picker
I have not tried this solution yet, but the developer of flutter-facebook-auth posted this in their:
darwin-morocho comment on Issue #48
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!Thank you for pointing out the issue. Yes the problem is with flutter_facebook_auth package. My app is having problem with both google_fonts and permission_handler packages due to this Facebook package.
I need all of these packages in my app. How can we "isolate" the facebook login package so it does not effect the other packages?
The packages versions I am using:
permission_handler: ^5.0.1+1
google_fonts: ^1.1.2
Edit:
Having same problem with flutter_login_facebookDid you get any solution of it ?
With same issue I am struggling, I need to have both packages in the app is permission_handler & file_pickerI have not tried this solution yet, but the developer of flutter-facebook-auth posted this in their:
darwin-morocho comment on Issue #48
Thank you for your response but it is not useful in my case I am getting same darwin-morocho comment on Issue #48
in the app release mode with
pubspec.yaml
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
file_picker: ^2.1.6
permission_handler: ^5.1.0+2
Issues resolved by adding this
buildTypes {
release {
shrinkResources false
minifyEnabled false
signingConfig signingConfigs.release
}
}
in android/app/build.gradle
Any progress on this? My issue relates to permission_handler and image_picker plugin
I have similar situation. I am using agora video call in my app and I need microphone and camera permissions. it's working on iOS but not working on Android.
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: MissingPluginException(No implementation found for method requestPermissions on channel flutter.baseflow.com/permissions/methods)
@eademir which plugins you are using? In my case, image_picker and permission_handler were in sort of a clash, so I replaced the image_picker with images_picker plugin (an entirely different plugin) and now it's working.
Thank you for reply @Sheharyar566. Unfortunately, agora is must for my project and there is no any substitution for agora. By the way, I updated agora_rtc_engine to 3.1.3 and permission_handler to 5.0.1 and I am still getting same error. I will ask to agora help desk.
Edit: Hi everybody! I solved the problem. I edited my pubspec.yaml file and changed flutter_facebook_auth: ^1.0.0 to flutter_facebook_auth_platform_interface: ^2.4.0. It wasn't only about agora or permission handler. Thanks for inspire me @Sheharyar566!
Hi, if this can help, I solved that issue by adding in "MainActivity.kt" for Kotlin :
override fun onCreate(savedInstanceState: Bundle?, persistentState: PersistableBundle?) {
super.onCreate(savedInstanceState, persistentState)
GeneratedPluginRegistrant.registerWith(FlutterEngine(this))
}
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
flutterEngine.plugins.add(PathProviderPlugin())
flutterEngine.plugins.add(SqflitePlugin())
flutterEngine.plugins.add(PermissionHandlerPlugin())
}
Most helpful comment
Hi Folks!
I tried a lot of things and any thing working. After long time I discovered the root problem. In my case the problema was conflict between two plugins, Facebook signIn and Permissions. So I cut office the Facebook Plugin and all works!