Google Maps Native will not install - Executing cordova command: cordova plugin add cordova-plugin-googlemaps --save [ERROR] An error occurred while running the above command (exit code 1):

When running the ionic cordova:plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=“YOUR_ANDROID_API_KEY_IS_HERE” --variable API_KEY_FOR_IOS=“YOUR_IOS_API_KEY_IS_HERE” I get the following error:

⠹ Executing cordova command: cordova plugin add cordova-plugin-googlemaps --save [ERROR] An error occurred while running the above command (exit code 1):

    Error: Variable(s) missing: API_KEY_FOR_ANDROID

My system info is as follows:

Cordova CLI: 6.5.0 
Ionic Framework Version: 2.3.0
Ionic CLI Version: 3.0.0-beta.4
ios-deploy version: 1.9.1 
ios-sim version: 5.0.13 
OS: OS X El Capitan
Node Version: v7.7.2
Xcode version: Xcode 7.3.1 Build version 7D1014

please help

  1. Did you replace the “YOUR_ANDROID_API_KEY_IS_HERE” with your API key?
  2. You are using a beta of the CLI. Betas tend to be broken. Try with 2.2.2 instead.

Yes I replaced the android key, how do I upgrade the cli without getting the new angular conventions and structure? I don’t want to run my project and environment.

The latest version of ionic generates module files and pagemodules when you use ionic g pages, I don’t have time to refactor an entire project because of one plugin.

Thanks