Error Building 1st Android App (iOS works fine)

Tried building using the Ionic Dashboard and it fails with a very unhelpful message. Any thoughts?

FAILURE: Build failed with an exception.

  • Where:
    Script ‘/builds/MyApp/MyAppApp/platforms/android/cordova-plugin-googlemaps/myapp-apikey.gradle’ line: 54

  • What went wrong:
    A problem occurred evaluating script.

Please add ‘’ to the config.xml file.

After some searching, I found the following need to be added outside of the plugin but inside the widget.

<preference name="API_KEY_FOR_ANDROID" value="xxx" />
<preference name="GOOGLE_MAPS_ANDROID_API_KEY" value="xxx" />