Upgrading to complieSdk 31 and Fixing PendingIntent Error in Android 12 - Android Studio - Java

Опубликовано: 19 Октябрь 2024
на канале: Intelligent Coding
9,297
140

How to resolve error:
Targeting S+ (version 10000 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent

Changing to compileSdkVersion 31 and fixing PendingIntent error.
Changing to targetSdkVersion 31.

Work-Runtime dependencies:
implementation 'androidx.work:work-runtime:2.7.1'