EddyVerbruggen / Custom-URL-scheme

:link: Launch your Cordova/PhoneGap app by a Custom URL scheme like mycoolapp://
1.03k stars 367 forks source link

Getting error while installing in android saying Variable(s) missing: ANDROID_SCHEME, ANDROID_HOST, ANDROID_PATHPREFIX #181

Open saurabhudaniya200 opened 8 years ago

saurabhudaniya200 commented 8 years ago

I am trying to install the plugin but after running the command cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME=mycoolapp

I am getting the following error

Failed to install 'cordova-plugin-customurlscheme':Error: Variable(s) missing: ANDROID_SCHEME, ANDROID_HOST, ANDROID_PATHPREFIX

Full error message below

Failed to install 'cordova-plugin-customurlscheme':Error: Variable(s) missing: ANDROID_SCHEME, ANDROID_HOST, ANDROID_PATHPREFIX at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:306:23 at _fulfilled (/usr/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/lib/node_modules/cordova/node_modules/q/q.js:557:44 at flush (/usr/lib/node_modules/cordova/node_modules/q/q.js:108:17) at process._tickCallback (node.js:415:13) Error: Variable(s) missing: ANDROID_SCHEME, ANDROID_HOST, ANDROID_PATHPREFIX at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:306:23 at _fulfilled (/usr/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/usr/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/usr/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /usr/lib/node_modules/cordova/node_modules/q/q.js:557:44 at flush (/usr/lib/node_modules/cordova/node_modules/q/q.js:108:17) at process._tickCallback (node.js:415:13)

EddyVerbruggen commented 8 years ago

What version of the cordova cli are your running? Can you try npm install -g cordova ?

saurabhudaniya200 commented 8 years ago

@EddyVerbruggen currently I am using 5.1.1, I will try to update it and will let you know the findings

saurabhudaniya200 commented 8 years ago

@EddyVerbruggen I upgraded the cordova to 6.2.0 and now everything works fine, thanks :+1: