如果我包含kotlin-reflect
它,我将无法构建我的发布产品。我尝试将其添加到 proguard 配置中:
-keep class kotlin.reflect.** { *; }
但这根本没有帮助。这是 gradle 构建的错误结果:
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]
我正在使用 kotlin 1.1.1(和 gradle 3.3,如果这很重要的话。) j