Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install app using cordova platform add android / plugin add after running npm install #52

Open
gnesher opened this issue Dec 14, 2017 · 0 comments

Comments

@gnesher
Copy link

gnesher commented Dec 14, 2017

Expected Behaviour

During build process (Jenkins) we set up a new project, npm install dependencies and then add the android platform. Plugin within config.xml should be installed

Actual Behaviour

Plugin installation fails with the following error:

Android project created with [email protected]
Discovered plugin "com.phonegap.plugins.barcodescanner" in config.xml. Adding it to the project
Failed to restore plugin "com.phonegap.plugins.barcodescanner" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.phonegap.plugins.barcodescanner@https://github.com/Telerik-Verified-Plugins/BarcodeScanner via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

In the README docs there is a mention of an older notation (com.phonegap.plugins.barcodescanner vs com-phonegap-plugins-barcodescanner) but to the best of my knowledge we are using a recent cordova / cordova-android version and we do get the latest version of the plugin

Reproduce Scenario (including but not limited to)

This only seems to happen when npm install is run prior to android add platform / add plugin
It also seem to only effect plugins with . notation in their names (aka com.phonegap.plugins.barcodescanner)

Steps to Reproduce

I've tried reproducing this on a blank project with no success so far. It's a little hard to replicate our exact set up.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Fails before loading on device

(Android) What device vendor (e.g. Samsung, HTC, Sony...)

Fails before loading on device

Cordova CLI version and cordova platform version

This has been tested with cordova 7.0.1 and 7.1.0
running cordova-android 6.2.3

Plugin version

com.phonegap.plugins.barcodescanner 6.0.5 "BarcodeScanner"
(the supplied grep fails as it's with . notation and not -)

Sample Code that illustrates the problem

N/A

Logs taken while reproducing problem

Android project created with [email protected]
Discovered plugin "com.phonegap.plugins.barcodescanner" in config.xml. Adding it to the project
Failed to restore plugin "com.phonegap.plugins.barcodescanner" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.phonegap.plugins.barcodescanner@https://github.com/Telerik-Verified-Plugins/BarcodeScanner via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant