Vonage / vonage-java-code-snippets

Java code examples for using Vonage
MIT License
11 stars 31 forks source link

Compile problem with test code #89

Closed mgodbole closed 8 months ago

mgodbole commented 1 year ago

I am trying out the test code.

Created a maven project. Added the Vonage maven dependency

com.vonage client 7.1.0

Copied the sample code from https://github.com/vonage/vonage-java-code-snippets/blob/master/src/main/java/com/vonage/quickstart/voice/OutboundTextToSpeechWithNcco.java#L39-L42

But I am getting an error on this line. Ncco ncco = new Ncco(TalkAction.builder("This is a text to speech call from Vonage").build()); The type com.fasterxml.jackson.databind.ObjectWriter cannot be resolved. It is indirectly referenced from required .class files

I checked maven repo and 7.1.0 is indeed the latest version. What gives?

Thanks, Maneesh

SMadani commented 1 year ago

Please try again with the latest version. This error seems like a classpath issue, most likely a problem with your build.gradle or pom.xml dependencies.