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"
How can I reproduce this?
Dupe of #402. See https://github.com/square/moshi/issues/402#issuecomment-415247195.
@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.
Most helpful comment
@blackberry2016 I had this same issue.
Using config
-keep class kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpldid 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.