Giter Site home page Giter Site logo

Comments (4)

Vest avatar Vest commented on July 17, 2024

It might happen that your project doesn't have the library slf4j in the build and/or class path. If you use Maven, please be sure that you have this library in pom.xml. E.g.

	<dependency>
		<groupId>org.slf4j</groupId>
		<artifactId>slf4j-api</artifactId>
		<version>[1.7,)</version>
		<scope>provided</scope>
	</dependency>

If you tell few words about your project and the way how you run it, somebody will give you a better answer.
p.s. please rename the issue and put more info into the description text. It doesn't look nice.

from alexa-skills-kit-sdk-for-java.

Pemboura avatar Pemboura commented on July 17, 2024

thx for it is Work!
now i try to write a sample Methode that alexa can ask me to choice one city. i just definit 2 cities in Slot types, but i get this failure ich i work it.
" the response is invalid" and alexa app tell that the response can not be null.
i need some help
thx

from alexa-skills-kit-sdk-for-java.

Vest avatar Vest commented on July 17, 2024

I appreciate your feedback. It means that the current issue is not an issue anymore, and you would better close it to avoid any possible confusion for everyone.

With your question, please ask it in the corresponding forums. E.g. here. I do not think that using the "issues" tab as a forum is a good idea. Sorry.

Regarding your second question: I suggest you to check that you send a response object rather than null. Try to start from the simple example: one intent, one response, no processing and then increase the complexity of the code. E.g.

@Override
public SpeechletResponse onIntent(IntentRequest request, Session session) throws SpeechletException {
    String speechText = "Hello Vest! I like your reply.";
    SimpleCard card = new SimpleCard();
    card.setTitle("Hello World");
    card.setContent(speechText);

    PlainTextOutputSpeech speech = new PlainTextOutputSpeech();
    speech.setText(speechText);

    return SpeechletResponse.newTellResponse(speech, card);
}

That's all.

from alexa-skills-kit-sdk-for-java.

 avatar commented on July 17, 2024

Closing due to inactivity but please feel free to reopen if this issue persists!

from alexa-skills-kit-sdk-for-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.