Android build failed with kotlin reflection and prolog

I can’t create my product release if I turn kotlin-reflecton with it. I tried adding this to the proguard configuration:

-keep class kotlin.reflect.** { *; }

But that didn't help at all. Here is the error result from gradle build:

Optimizing...
Unexpected error while performing partial evaluation:
   Class       = [kotlin/reflect/jvm/internal/impl/renderer/DescriptorRendererImpl]
   Method      = [renderPossiblyInnerType(Ljava/lang/StringBuilder;Lkotlin/reflect/jvm/internal/impl/descriptors/PossiblyInnerType;)V]
   Exception   = [java.lang.IllegalArgumentException] (Stacks have different current sizes [0] and [1])
 Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Stacks have different current sizes [0] and [1]

I am using kotlin 1.1.1 (and gradle 3.3, if that matters.) J

+4
source share
1 answer

I had some similar errors with kotlin reflect class and proguard, decided to add in -optimizations

Class! / Unpacking / listing

Android Proguard " & # 39; i & # 39; "

0

Source: https://habr.com/ru/post/1672394/


All Articles