Flutter-permission-handler: Always says "No permissions found in manifest"

Created on 15 Mar 2019  路  20Comments  路  Source: Baseflow/flutter-permission-handler

馃挰 Questions and Help

Hello,

I copied and paste the example: https://github.com/BaseflowIT/flutter-permission-handler/tree/develop/example both main.dart and the permissions inside AndroidManifest.xml.

The message is always the same:

Launching lib/main.dart on SM G935F in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
Syncing files to device SM G935F...
D/libGLESv2( 2235): STS_GLApi : DTS, ODTC are not allowed for Package : com.example.flutter_app
D/permissions_handler( 2235): No permissions found in manifest for: $permission
I/chatty  ( 2235): uid=10519(u0_a519) com.example.flutter_app identical 5 lines
D/permissions_handler( 2235): No permissions found in manifest for: $permission
D/permissions_handler( 2235): No permissions found in manifest for: $permission
I/chatty  ( 2235): uid=10519(u0_a519) com.example.flutter_app identical 3 lines
D/permissions_handler( 2235): No permissions found in manifest for: $permission
D/ViewRootImpl@6bcba18[MainActivity]( 2235): ViewPostIme pointer 0
D/ViewRootImpl@6bcba18[MainActivity]( 2235): ViewPostIme pointer 1
D/permissions_handler( 2235): No permissions found in manifest for: $permission
I/flutter ( 2235): decodePermissionRequestResult called with: value:[{0: 4}]
I/flutter ( 2235): {PermissionGroup.calendar: PermissionStatus.unknown}
I/flutter ( 2235): PermissionStatus.unknown

No matter what I do. Even tried more simple code, like just asking for one permission clicking a button.

I do have all the permissions on manifest.

Any clues?

Most helpful comment

In my case the problem solved with command flutter clean

All 20 comments

I also have the same problem.

+1

Same here. I believe it is due to the latest update to Flutter and Dart. I am getting errors on other packages as well since the upgrade.

Any progress? I just can't proceed my tests and I didn't find anything about this.

I am also facing same problem. Can you please give us some update about this topic.

I'm trying to debug by myself and I found something (I guess).

PermissionHandlerPlugin.java

PackageInfo info = context.getPackageManager().getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS);
mRequestedPermissions = new ArrayList<>(Arrays.asList(info.requestedPermissions));

The method info.requestedPermissions supposedly should bring to us all the <uses-permissions/> inside AndroidManifest.xml.

I did a Log.d(LOG_TAG, mRequestedPermissions.toString()); and the result is always: D/permissions_handler(25583): [android.permission.INTERNET] no matter what.

So the method hasPermissionInManifest always return false.

Keep trying...

I do have news.

When creating the apk for debug, it ALWAYS compile just the android.permission.INTERNET inside apk. I figured out listing the permissions with: aapt d permissions /path/to/com.your.package.apk.

When creating the apk for release, all the permissions are injected and library works.

Probably the problem is the way Flutter are compiling.

image

Well, I just created a new project with latest flutter SDK and everything is working.

In my case the problem solved with command flutter clean

In my case the problem solved with command flutter clean

Thank-you, @samosudov!

In my case the problem solved with command flutter clean

still not working bro

https://stackoverflow.com/q/61591655/11394781

please some one help me bro

https://stackoverflow.com/q/61591655/11394781
please some one help me bro

@lokeshpaladugula answered
https://stackoverflow.com/a/61592105/5451349

not working on me

still have this problem馃槶

still having the problem :33

got it by reinstalling the app and clearing cache

Still having it. even @thukyaw11 trick didn't help.

In my case the problem solved with permission_handler: 5.1.0+2

@oreo this also worked for me.

Was this page helpful?
0 / 5 - 0 ratings