This is a migrated thread and some comments may be shown as answers.

Using Custom URL Scheme cordova plugin causes compilation error(Server exception)

1 Answer 190 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ruchin
Top achievements
Rank 1
ruchin asked on 16 Dec 2015, 03:06 PM

Hi,

I am required to make use of the Custom URL Scheme cordova plugin in my app.When I do so, I get the compilation error (Server exception)given below:-

 

Server exception
Project "myZypDev.tmp.proj" (default targets): Warning: Cannot include the following item(s) in your application: Plugins\SMS-0.1.1\.gitignore;Plugins\SocialSharing-4.3.17\.gitignore;Plugins\Toast-2.1.1\.gitignore;Plugins\Toast-2.1.1\src\blackberry10\native\.cproject;Plugins\Toast-2.1.1\src\blackberry10\native\.project. The build system treats items with a leading dot as hidden files or directories and does not process them. Rename the affected items in your project and try again. android Build Tooling revision 2015.11.25.2r Warning: Failed to install 'nl.x-services.plugins.launchmyapp':Error: Variable(s) missing: URL_SCHEME at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23 at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13) at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44 at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17) at process._tickCallback (node.js:419:13) Warning: Variable(s) missing: URL_SCHEME Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189 Warning: throw Error("exit code: " + code); ^ Warning: Error: exit code: 1 at Error (<anonymous>) at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14) at ChildProcess.emit (events.js:98:17) at Process.ChildProcess._handle.onexit (child_process.js:810:12) Error: Build failed during execution Error: 'Build failed with error code 8' Done building project "myZypDev.tmp.proj" -- FAILED. 

 

However when I try to Load this Custom URL Scheme cordova plugin into a new Telerik AppBuilder project using load in appbuilder,it works fine.

I am not able to find out what really is causing the above mentioned error.Can you pls look into my sample app named myZypDev and tell me where I am going wrong.

Thanks,

Ruchin Dayal

 

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 21 Dec 2015, 09:50 AM
Hello Ruchin,

The reason for the build failing on your side is missing plugin variable for the Custom URL Scheme plugin. This can be seen from the build failure output:
Error: Variable(s) missing: URL_SCHEME at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23

Please, correct this in your project's Properties > Plugins page (as explained here) and let me know if you will require further assistance.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
ruchin
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or