Skip to content

lint Error with TargetSdkVersion 33: Posting a permission requires holding the POST_NOTIFICATIONS permission. #2354

@JohannesTeichert

Description

@JohannesTeichert

I am getting this error when executing lintDebug gradle task:

Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission (usage from com.squareup.picasso.RemoteViewsAction.NotificationAction) [NotificationPermission]

   Explanation for issues of type "NotificationPermission":
   When targeting Android 13 and higher, posting permissions requires holding
   the runtime permission android.permission.POST_NOTIFICATIONS.

I have target targetSdkVersion 33 and I am running ./gradlew lint.

Should picasso include the permission or the depending app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions