Olá,
Eu estou tentando adicionar plugins ao meu projeto e estou recebendo um erro.
Uso como sistema operacional o Ubuntu 17.04
Desde já agradeço pela ajuda
Comando executado: phonegap plugin add phonegap-plugin-image-capture
Saída no console: Installing "phonegap-plugin-image-capture" for android
Installing "phonegap-plugin-media-stream" for android
Installing "es6-promise-plugin" for android
ANDROID_HOME=/home/roger/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Failed to install 'es6-promise-plugin':Error at Object.module.exports.check_gradle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/check_reqs.js:90:25) at GradleBuilder.prepEnv (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/builders/GradleBuilder.js:161:23) at Api.module.exports.runClean (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/build.js:131:20) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/Api.js:394:50 at _fulfilled (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:796:13) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:604:44 at runSingle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:137:13) at flush (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:125:13)
Failed to install 'phonegap-plugin-media-stream':Error at Object.module.exports.check_gradle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/check_reqs.js:90:25) at GradleBuilder.prepEnv (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/builders/GradleBuilder.js:161:23) at Api.module.exports.runClean (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/build.js:131:20) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/Api.js:394:50 at _fulfilled (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:796:13) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:604:44 at runSingle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:137:13) at flush (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:125:13)
Failed to install 'phonegap-plugin-image-capture':Error at Object.module.exports.check_gradle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/check_reqs.js:90:25) at GradleBuilder.prepEnv (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/builders/GradleBuilder.js:161:23) at Api.module.exports.runClean (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/lib/build.js:131:20) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/Api.js:394:50 at _fulfilled (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:796:13) at /home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:604:44 at runSingle (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:137:13) at flush (/home/roger/dev/phonegap/melhorcompra/platforms/android/cordova/node_modules/q/q.js:125:13)
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: /home/roger/Android/Sdk/tools/templates/gradle/wrapper