Upgrading Android version to 31 I get a new error with expo-facebook:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
I tried to add implementation 'androidx.work:work-runtime-ktx:2.7.0' as specified in this SO thread but I still get the error.
What other solution than downgrading the target Android version do I have?
Add these lines in
android/app/build.gradle:And then look for these files and lines, and modify them too.
Line (463):
PendingIntent.FLAG_UPDATE_CURRENTModify to:
PendingIntent.FLAG_IMMUTABLELine (463):
PendingIntent.FLAG_UPDATE_CURRENTModify to:
PendingIntent.FLAG_IMMUTABLELine (463):
PendingIntent.FLAG_UPDATE_CURRENTModify to:
PendingIntent.FLAG_IMMUTABLEThen just run the command for installation on the simulator or device that will work 100%