When I use gpgs extension and share extension then the android bundle fails as it gives error
Exception in thread “main” java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /tmp/.gradle/unpacked/org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.7.10.jar:kotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion.class
at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:98)
at com.android.tools.r8.D8.main(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:4)
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /tmp/.gradle/unpacked/org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.7.10.jar:kotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion.class
at Version.fakeStackEntry(Version_3.3.20-dev+aosp5.java:0)
at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:75)
at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:28)
at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:27)
at com.android.tools.r8.internal.pj.b(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:2)
at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:22)
at com.android.tools.r8.D8.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:17)
at com.android.tools.r8.internal.pj.a(R8_3.3.20-dev+aosp5_a629c2c3592f558d09a1aa063f8fa13e35ca354216d318a506759ca7374873e0:85)
… 1 more
Caused by: com.android.tools.r8.internal.f: Type kotlin.internal.jdk7.JDK7PlatformImplementations$ReflectSdkVersion is defined multiple times: /tmp/.gradle/unpacked/org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.7.10.jar:kotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion.class, /tmp/.gradle/unpacked/org.jetbrains.kotlin-kotlin-stdlib-1.8.22.jar:kotlin/internal/jdk7/JDK7PlatformImplementations$ReflectSdkVersion.class
at com.android.tools.r8.internal.RS.a(R8_3.3.20
i found that the dependencies used in gpgs uses
androidx.core:core:1.0.0
and dependency used in share uses
androidx.core:core:1.12.0
so it might be related to that ?
Also the crash file is attached here.
crash.txt (363.9 KB)