https://kotlinlang.org logo
#compose
Title
# compose
z

zoha131

11/13/2020, 12:26 AM
after upgrading to latest alpha-07 version I am unable to use CoilImage and getting this fatal error:
i

Ian Lake

11/13/2020, 12:36 AM
Did you already update accompanist to 0.3.3.1? You'll want a version that is built against alpha07
z

zoha131

11/13/2020, 1:31 AM
yeah. I missed the version number. Now it is working. thanks for the reply
n

nrobi

11/23/2020, 10:00 AM
Odd but I’m getting similar exception with
accompanist 0.3.3.1
&
compose 1.0.0-alpha07
(Both with
accompanist-coil
and
accompanist-glide
)
Copy code
java.lang.NoSuchMethodError: No static method CoilImage(Ljava/lang/Object;Landroidx/compose/ui/Modifier;Landroidx/compose/ui/Alignment;Landroidx/compose/ui/layout/ContentScale;Landroidx/compose/ui/graphics/ColorFilter;ZLkotlin/jvm/functions/Function2;Lcoil/ImageLoader;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V in class Ldev/chrisbanes/accompanist/coil/CoilImage; or its super classes (declaration of 'dev.chrisbanes.accompanist.coil.CoilImage' appears in /data/app/~~yKMFsZqQi8WzW1AmsLwaXQ==/com.halcyonmobile.multiplatformplayground-cQzNi_BUsq41Qrn1otolDg==/base.apk!classes19.dex)
Interestingly the deprecated
CoilImageWithCrossfade
works.
3 Views