Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229339

Ionic cordova run android build failed, when I add cordova-plugin-googlemaps

$
0
0

Hey @alishokoie
I think You did not installed the google map plugin in right way.
Because your package.json does not have a proper API KEY.
So try to install the plugin correctly.
Please let me know if it works

 "cordova-plugin-googlemaps": {
        "API_KEY_FOR_ANDROID": "MY_API_KEY",
        "PLAY_SERVICES_VERSION": "11.8.0",
        "ANDROID_SUPPORT_V4_VERSION": "24.1.0"
      }
Add the Api key while you install the plugin
$ 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"
$ npm install --save @ionic-native/google-maps

Viewing all articles
Browse latest Browse all 229339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>