For me, when using the method (chain.proceed (request)), there is a problem which is the following error.
My error happens in Android 12
I use retrofit
class CustomInterceptor implements Interceptor { @NonNull @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request (); return chain.proceed (request); } } Exception
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.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.