alexa / alexa-skills-kit-sdk-for-java

The Alexa Skills Kit SDK for Java helps you get a skill up and running quickly, letting you focus on skill logic instead of boilerplate code.
http://developer.amazon.com/ask
Apache License 2.0
816 stars 746 forks source link

Missing withExperimentation method in ResponseBuilder for ask-sdk-core 2.42.3 #309

Closed kkocel closed 2 years ago

kkocel commented 2 years ago

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

I noticed that ResponseBuilder in the newest version of SDK contains a call to a method that does not exist:

It's

.withExperimentation(experimentTriggerResponse)

and it produces the following stacktrace:

'com.amazon.ask.model.Response$Builder com.amazon.ask.model.Response$Builder.withExperimentation(com.amazon.ask.model.interfaces.alexa.experimentation.ExperimentTriggerResponse)'
java.lang.NoSuchMethodError: 'com.amazon.ask.model.Response$Builder com.amazon.ask.model.Response$Builder.withExperimentation(com.amazon.ask.model.interfaces.alexa.experimentation.ExperimentTriggerResponse)'
    at com.amazon.ask.response.ResponseBuilder.build(ResponseBuilder.java:122)
kkocel commented 2 years ago

It looks like I was using different jar, so this is not an issue anymore.