Moshi: No BuiltInsLoader implementation was found

Created on 29 Aug 2018  路  6Comments  路  Source: square/moshi

As I add all ProGuard rules, but still throwing

No BuiltInsLoader implementation was found. Please ensure that the META-INF/services/ is not stripped " "from your application and that the Java virtual machine is not running under a security manager"

https://github.com/JetBrains/kotlin/blob/master/core/descriptors/src/org/jetbrains/kotlin/builtins/BuiltInsLoader.kt

Most helpful comment

@blackberry2016 I had this same issue.

Using config -keep class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl did not work.

Using config -keep public class kotlin.reflect.jvm.internal.impl.builtins.* { public *; } as suggested here throws a different error.

What worked was -keep public class kotlin.reflect.jvm.internal.impl.** { public *; }

This increases the apk size by about 60KB which is insignificant.

All 6 comments

How can I reproduce this?

@JakeWharton Not working with -keep class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl

Please provide a sample that reproduces the problem

@blackberry2016 I had this same issue.

Using config -keep class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl did not work.

Using config -keep public class kotlin.reflect.jvm.internal.impl.builtins.* { public *; } as suggested here throws a different error.

What worked was -keep public class kotlin.reflect.jvm.internal.impl.** { public *; }

This increases the apk size by about 60KB which is insignificant.

Was this page helpful?
0 / 5 - 0 ratings