moko-resources icon indicating copy to clipboard operation
moko-resources copied to clipboard

NoSuchMethodError: No direct method <init> ... in class Ldev/icerock/moko/resources/StringResource

Open mikezliu opened this issue 3 years ago • 1 comments

KN 1.6.10 dev.icerock.moko:resources 0.18.0

After following the setup instructions, I'm seeing this runtime error:

java.lang.NoSuchMethodError: No direct method <init>(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;)V in class Ldev/icerock/moko/resources/StringResource; or its super classes (declaration of 'dev.icerock.moko.resources.StringResource' appears in /data/app/~~iUOfV6h1vOfStNdlNOmZng==/com.domain.app-sxCq9GfwGLdb8jtRdKTQrw==/base.apk!classes36.dex)

When using:

MR.strings.my_string

mikezliu avatar Feb 05 '22 06:02 mikezliu

is it reproduced on actual version? can you also check sample app - will bug reproduced in sample on your environment?

Alex009 avatar Apr 29 '22 05:04 Alex009