After incrementing compileSdkVersion to 31 (Android 12), and when lint check is performed, the following issue appears:
Error: Call requires API level S (current min is 23): android.util.SparseArray#set [NewApi]
Has someone had a similar issue after incrementing this, and why does it occur?