cordova - Failed to install 'plugin.google.maps':Error: Variable(s) missing: API_KEY_FOR_ANDROID -
i have ionic project works fine, when try run
ionic platform add android
i error :
failed install 'plugin.google.maps':error: variable(s) missing: api_key_for_android @ c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js: 299:23 @ _fulfilled (c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54) @ self.promisedispatch.done (c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:8 16:30) @ promise.promise.promisedispatch (c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\q\ q.js:749:13) @ c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44 @ flush (c:\users\rsone\appdata\roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17) @ process._tickcallback (node.js:419:13)
even got same error while installing google map plugin. installed phonegap method rather cordova way.
first if have tried installing plugin. check in plugin list. don't kow in ionic, in cordova
cordova plugin ls
if google maps plugin installed uninstall it.
now download folder given there.google map plugin
extract , edit api keys in plugin.xml (refer https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/phonegap-usage#5-install-this-plugin)
later install using local plugin -
cordova local plugin add (path plugin)/phonegap-googlemaps-plugin-master/
Comments
Post a Comment