If your app is not an "HTML5+Cordova" app (see the image below). If it just says "HTML5" you'll need to upgrade it to Cordova. But I recommend you start a new project that is a "Cordova" project.
When you have a Cordova project it will include a way to add plugins. See the image below and the XDK documentation for additional help.