Error setting up GoogleMaps API key when using with VueJS.
See original GitHub issueHello everybody!
I’m getting an error when I try to set the the api key in the xml files as in the documentation.
nativescript_googlemaps_api_key.xml
<?xml version="1.0" encoding="utf-8"?> <resources> <string name="nativescript_google_maps_api_key">Here I have my the API-KEY without quotes</string> </resources>
Then I add the piece of code in the AndroidManifest.xml file:
<meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/nativescript_google_maps_api_key" />
Probably I’m missing something… Hope you can help me!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Vue Google Maps - JavaScript API error
*edit i just noticed that this issue is happening when i try to load the api key from my .env file. when i...
Read more >Variable API Key? Or set API key from Vue instance? #135
My goal is to dynamically set the API key used by VueGoogleMaps. VueGoogleMaps currently loads with a static-key in main.js. I would like...
Read more >How To Use Google Maps in Vue with vue-google-maps
Learn how to create an embedded Google Map with search and autocomplete support in Vue with vue-google-maps.
Read more >Vuejs & Google Maps API 1 HOUR Course - YouTube
In this Vue.js and Google Maps API 1 Hour course, You're going to build a Location Detector App from start to finish from...
Read more >Error Messages | Maps JavaScript API
This behavior typically indicates issues with either an API key or billing. In order to use Google Maps Platform products, billing must be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You should post your error code…
Try follow the steps under npm here: https://organicdesign.nz/User:Saul/nativescript#npm
Hi @saul-avikar,
I managed to solved the issue, it seems that my AndroidManifest.xml file was incomplete. I added several lines that I found and now it works.
This is the file now:
`
<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="__PACKAGE__" android:versionCode="1" android:versionName="1.0">
</manifest>`