Error using Cordova Google Maps plugin in android emulator: getMap is not defined in GoogleMaps plugin -


when calling plugin.google.maps.map.getmap don't see map being shown.
remote inspection chrome reveals there's error in browser console: getmap not defined in googlemaps plugin

i followed steps mentioned in pluing's tutorial linux: https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/tutorial-for-mac

i have installed required android packages, made sure api key correct, google maps services enabled , else mentioned in troubleshooting guide.

versions:
cordova: 5.4.1
googlemaps plugin: 1.3.9
android emulator: nexus 5 5.1.1 (api level 22)

i'm noob cordova , android platforms, no idea go here, how past error.

ok, got around it.
turns out there's recent issue google play services: https://code.google.com/p/gmaps-api-issues/issues/detail?id=9021 (found googling java exception found adb logcat)

the comment helped me one:

"we have identified issue , have developed fix. rolling out in next major update of google play services, @ stage don't have timeline yet. (it soon!) if using emulator, re-creating instance (possibly new sd card attached) should work around problem. patience, everyone! let know when fix has rolled out. (make sure 'star' issue notified of updates.)"

looks tries write on sd card, , had not set size sd in emulator.
once set sd size 200mb in avd, , restarted emulator, worked fine. seems workaround until new google play services version right fix comes out.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -