Twilio API issue

Hi stackoverflow,

This may be a very simple question, but I am having trouble building a basic sms response application in java. I googled around and couldn't find a solution for my problem. The problem arises when I do the following imports:

import com.twilio.sdk.verbs.TwiMLResponse;
import com.twilio.sdk.verbs.TwiMLException;
import com.twilio.sdk.verbs.Message;

      

Eclipse throws an error when trying to call and implement the Message class speaking The import com.twilio.sdk.verbs.Message cannot be resolved

. I have no problem with other classes, just the Message class. And I used Maven to compile the project.

Anyone have any solutions and / or solutions for this problem?

+3


source to share


2 answers


I was using the wrong version of the Twilio SDK in my maven dependency. I was using 3.3.15 and I updated it to 4.4.2 and it solved my problem. Thanks for all the comments and answers.



+1


source


You need to list external libraries in the build path.

In Eclipse, right click on your project> Build Path> Configure Build Path> Libraries> Add JARs (or "Add External JARs" if you haven't copied it to your project folder).



If it still doesn't work, there might be drawbacks that you don't need, so you do too. To save you headache, you can also use Maven to load them automatically .

+1


source







All Articles