Skip to main content

Hello, I am an Xamarin/Maui developer, and I am using intercom SDK for Android.
I have created Xamarin Android binding for all required projects. Everything is working fine when I run the things without r8 shrinker. However, when I generate a release version where we have R8 shrinker enabled, I am getting compile time issues.

Issues: 

1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.
1>R8: Error  : A type variable is not in scope.

 

I am using the ProGuard configuration provided in your GitHub documentation, as well as the ProGuards for OkHttp, Okio, and Retrofit (these last ones have been working in production for a long time in the code, it's not something recent, only Intercom is). Could you please assist me with this issue?

Intercom SDK: 15.10.2
Compile SDK: 34
Min SDK: 21
Target SDK: 34

Here is the Proguard config file

ProguardConfig

Hi @Cura ! Ebenezer here from Engineering Support👋

Looks like you were able to get in touch with us via the Messenger.

I’ll leave it to my colleagues as this would require a deeper dive into your set up.

I’ll paste the answer here at the end of the investigation.


Reply