On the Kodular Community a user had requested a proposal for a new extension using the Chromecast Java API/SDK. I wanted to do this and in a day I pretty much had it, until I tested it. I got a different error than what I’m getting now after building again and changing some things, but I continue to get this error:
Error from Companion: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/fasterxml/jackson/databind/ObjectMapper;
& Error from Companion: java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/jmdns/ServiceListener;
& Error from Companion: java.lang.NoClassDefFoundError: su.litvak.chromecast.api.v2.ChromeCasts;
although I import import su.litvak.chromecast.api.v2.*;
and in fact I did check the .jar
with 7Zip and the class ChromeCasts.class
is there.
If I try this with an APK, my app will crash. I am using Visual Studio Code and about half way through making the extension, it imported a most likely not Android class, related to JavaX. I removed it and built again, but I continue getting the same errors. I also set the Chromecast to null by default and I get this from my log:
[javac] warning: unknown enum constant Include.NON_NULL
[javac] reason: class file for com.fasterxml.jackson.annotation.JsonInclude$Include not found
[javac] warning: unknown enum constant Include.NON_NULL
[javac] warning: unknown enum constant Include.NON_NULL
[javac] warning: unknown enum constant Include.NON_NULL
Is that related?