For Cordova 3, drop .api in import package name org.apache.cordova.api.{CordovaPlugin,CordovaPlugin}.