Some versions of the Cordova cli prepend the string 'git+' to git URL references in package.json and config.xml. Cordova is unable to properly resolve URLs including the 'git+' string and fails to retrieve the plugin during the build.

Removing the string 'git+' wherever present in config.xml and package.json will resolve the problem.

Failed to restore plugin "cordova-plugin-statusbar" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin git+https://github.com/apache/cordova-plugin-statusbar.git 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