Status Update
Comments
al...@google.com <al...@google.com> #2
Issue with notification access code in core. Unclear where, but probably safe to assume NotificationCompat
.
al...@google.com <al...@google.com> #3
Note that this is a lint error and can be suppressed or lowered to warning-level on the client side. Lowering back to P2
.
ju...@google.com <ju...@google.com> #4
To find cause of issue, update
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
androidx/platform/frameworks/support/+/androidx-main:buildSrc/public/src/main/kotlin/androidx/build/SupportConfig.kt;l=50 to 33 and then run ./gradlew :core:core:lintDebug
al...@google.com <al...@google.com> #5
It's at
frameworks/support/core/core/src/main/java/androidx/core/app/NotificationManagerCompat.java:223: Error: When targeting Android 13 or higher, posting a permission requires holding the POST_NOTIFICATIONS permission [NotificationPermission]
mNotificationManager.notify(tag, id, notification);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "NotificationPermission":
When targeting Android 13 and higher, posting permissions requires holding
the runtime permission android.permission.POST_NOTIFICATIONS.
al...@google.com <al...@google.com> #6
Handling this as part of
Description
Version used: 1.6.0-alpha05
Devices/Android versions reproduced on: N/A
```
> Task :app:libs:Sample:lintDebug FAILED
C:\Users\user\.gradle\caches\transforms-3\84e0b56f406bbe56387dbc1b0ddea320\transformed\core-1.9.0-alpha05\jars\classes.jar: Error: When targeting Android 13 or higher, posting a permi
ssion requires holding the POST_NOTIFICATIONS permission [NotificationPermission]
Explanation for issues of type "NotificationPermission":
When targeting Android 13 and higher, posting permissions requires holding
the runtime permission android.permission.POST_NOTIFICATIONS.
```
This version uses AndroidX core and KTX core 1.9.0 alpha05 which is causing the issue, we cannot continue the build for CI CD due to this.