flutter_bugly icon indicating copy to clipboard operation
flutter_bugly copied to clipboard

android 12 设备点击升级无响应

Open qiuxiang opened this issue 3 years ago • 0 comments

image

这是一个官方确认的问题,表现为 android 12 设备点击升级无响应,并且可以看到 logcat

09-23 09:29:57.369  5232  5232 W System.err: java.lang.IllegalArgumentException: com.example: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.                                     
09-23 09:29:57.369  5232  5232 W System.err: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

要解决很简单,只要把 sdk 升级到最新就可以了

https://github.com/crazecoder/flutter_bugly/blob/c905bf4ba9dc9ce095117c339437a0d34e51a58d/android/build.gradle#L57

PR 已经提交:https://github.com/crazecoder/flutter_bugly/pull/152

qiuxiang avatar Sep 23 '22 02:09 qiuxiang