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.


Hello! I just upgraded Intercom SDK in Android to latest one, it’s 15.11.0 version. Now I’m trying to build an Android application from Unity. (It’s working fine with 15.8.3 version).

Everything looks fine, but when the task minifyDebugWithR8 is failing with:
  > A failure occurred while executing com.android.build.gradle.internal.tasks.R8Task$R8Runnable
   > Compilation failed to complete, origin: /Users/Jesus.Garcia@productmadness.com/.gradle/caches/transforms-3/4a75e8b5239795acd12bc894c94ac93e/transformed/jetified-intercom-sdk-base-15.11.0-runtime.jar:io/intercom/android/sdk/Injector$1.class

This is my current stack:

  - minSdkVersion 22 

  - compileSdk 34 

  - com.android.tools.build:gradle:7.4.2

  - gradle-7.6

 

Regards,

Jesus.

 


Reply