Cannot install plugin
Hi,
When I try to add the plugin with the Android and iOS keys I get the following error:
cordova plugin add plugin.google.maps --variable API_KEY_FOR_ANDROID="[KEY]" -- variable API_KEY_FOR_IOS="[KEY]"
Fetching plugin "android.support.v4" via plugin registry
Error during processing of action! Attempting to revert...
Failed to install 'plugin.google.maps':Error: Uh oh!
"/myApp/plugins/plugin.google.maps/src/android/plugin/google/maps/AsyncLicenseInfo.java" not found!
I have setup the environment as shown in the Tutorial for Mac. Can someone please help me out.
Thanks
I don't know why this error happened, but it seems the cordova-cli problem or network problem, something like that. Or sometimes the cordova plugin repository may happen some errors.
My advices are:
- try one more time.
- Confirm you have fully installed of environment tools (such as git, apache ant, etc)
- Confirm you use the latest version of Cordova.
I made a new cordova app and updated cordova through: npm install -g cordova gulp
I still seem to get the error. I have ant, adb, git setup and I use them for my other cordova projects. Does the plugin need any other external dependancy that I might be missing? I'm on a Mac OS X 10.9.3.
Thanks
Is this helpful? http://stackoverflow.com/questions/23121382/cant-install-cordova-plugins-from-git-on-cli
Or try to install the plugib by hand. https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Manual-Installation
I would avoid doing it manually since I've never had any problems installing cordova plugins from CLI. If I transferred entire plugins folder, where would I have to replace the Android/iOS keys?
Ok, try to install from git.
$> cordova plugin add https://github.com/wf9a5m75/phonegap-googlemaps-plugin.git --variable API_KEY_FOR_ANDROID=<YOUR_KEY> --variable API_KEY_FOR_IOS=<YOUR_KEY>
This should work.
It works!
Thanks a lot. I'm not sure what the issue is with just doing cordova plugin add plugin.google.maps
Great!