question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error while Installing plugin in Visual Studio 2015(Tool for Apache Cordova)

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • [x ] any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • [x ] Android
  • iOS

cordova information: (run $> cordova plugin list)

insert the output from the command here

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

Current behavior: This log report is from Visual Studio 2015 when trying to install googlemaps plugin. Haven’t tested for iOS yet. ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac ------ Name from source package.json: vs-tac ------ Version from source package.json: 1.0.42 ------ Package already installed globally at correct version. Installing plugin ‘…\Cordova_Plugins\cordova-plugin-googlemaps-master’ Starting launch process C:\Users\Admin\AppData\Roaming\Microsoft\VisualStudio\MDA\vs-npm\2.14.9\node.exe “C:\Users\Admin\AppData\Roaming\npm\node_modules\vs-tac\pluginInstall.js” --action install --projectSourceDir “…\test\test” --pluginName …\Cordova_Plugins\cordova-plugin-googlemaps-master --language en-IN --cliVersion “6.5.0” --npmInstallDir “C:\Users\Admin\AppData\Roaming\npm” --parameters “API_KEY_FOR_ANDROID=API_KEY_FOR_ANDROID API_KEY_FOR_IOS=API_KEY_FOR_IOS” --loglevel silly
------ Cordova tools 6.5.0 already installed. Each package is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies. No scripts found for hook “before_plugin_add”. Calling plugman.fetch on plugin “…\Cordova_Plugins\cordova-plugin-googlemaps-master” Copying plugin “…\Cordova_Plugins\cordova-plugin-googlemaps-master” => “…\test\test\plugins\cordova-plugin-googlemaps” Calling plugman.install on plugin “…\test\test\plugins\cordova-plugin-googlemaps” for platform "android Installing “cordova-plugin-googlemaps” for android Running command: cmd “/s /c “…\test\test\platforms\android\cordova\version.bat”” Command finished with error code 0: cmd /s /c “…\test\test\platforms\android\cordova\version.bat” Finding scripts for “before_plugin_install” hook from plugin cordova-plugin-googlemaps on android platform only. Executing script found in plugin cordova-plugin-googlemaps for hook “before_plugin_install”: plugins\cordova-plugin-googlemaps\src\before_plugin_install.js Resolving module name for fs => fs Resolving module name for path => path Resolving module name for q => q Warning: Failed to install ‘cordova-plugin-googlemaps’:TypeError: Object.keys called on non-object at Function.keys (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:170:27) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:198:43 at Array.forEach (native) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:197:34 at Array.forEach (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:192:25 at Array.forEach (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14) C:\Users\Admin\AppData\Roaming\npm\node_modules\vs-tac\node_modules\q\q.js:126 throw e; ^ TypeError: Object.keys called on non-object at Function.keys (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:170:27) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:198:43 at Array.forEach (native) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:197:34 at Array.forEach (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14) at …\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:192:25 at Array.forEach (native) at findPreference (…\test\test\plugins\cordova-plugin-googlemaps\src\before_plugin_install.js:171:14) Done

Expected behavior: Successful installation

Screen capture or video record:

Related code, data or error log (please format your code or data):

The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less.
Thank you for your cooperation.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
wf9a5m75commented, Apr 24, 2018
$> cordova clean

$> cordova run android

or

$> cordova platform rm android

$> cordova platform add android
0reactions
wf9a5m75commented, Apr 26, 2018

Congrats!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while Installing cordova-plugin-googlemaps(Error during ...
I am working on Visual Studio tool for Apache Cordova(In Visual Studio 2015). And I am stuck with the issue with installing "cordova-plugin- ......
Read more >
Visual Studio 2015 Update 3 Release Notes - Microsoft Learn
Visual Studio 2015 Update 3 includes Tools for Apache Cordova Update ... You can now add plugins from the config designer either by...
Read more >
Windows Platform Guide - Apache Cordova
Cordova apps targeting Windows can be developed on a Mac, either by ... Install any edition of Visual Studio matching the version requirements...
Read more >
Tools for Apache Cordova Updates in Visual Studio - YouTube
In this episode, Robert is joined by Jordan Matthiesen, who shows us enhancements to the Tools for Apache Cordova (TACO).
Read more >
Visual Studio 2015 and Apache Cordova - CodeProject
Xamarin, development tool based on the Mono Project, is much more affordable, especially with .NET developers. It helps bring the benefit of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found