Ensure that the following android key exists
Ensure that the following android key exists
Ensure that the following Android Key exists #69
Comments
DanDance commented Feb 4, 2016
I ran into this issue. I run my application on an android device, but the map is blank. adb logcat | grep Google says the following when i start my application:
E/Google Maps Android API( 9266): Ensure that the «Google Maps Android API v2» is enabled. E/Google Maps Android API( 9266): Ensure that the following Android Key exists: E/Google Maps Android API( 9266): API Key: *here goes my Android API key* E/Google Maps Android API( 9266): Android Application ( ;
): *here goes my cert finger print*;*here goes my package name*
I’ve created an android api key using cert fingerprint and package name that match cert fingerprint and package name posted in this log. But somehow application says that there is no such api key. Seems that the problem is about the api key. Did anyone face this issue?
The text was updated successfully, but these errors were encountered:
DanDance commented Feb 4, 2016
Finally i made it.
Steps to fix were:
1)I’ve uninstalled application from my device
2)Deleted app-debug.apk, app-debug-unaligned.apk from android/app/build/outputs/apk
3)Deleted Api Key from Google Developer Console
4)Generated new Api key
5)Added new Key to in AndroidManifest.xml
6)Built my app on device
Im not sure, but it seems like google cached my application data when i tried to authorize with invalid fingerprint.
mohamedpsx commented Mar 11, 2016
Had same issue, solved just by uninstalling and adding a new Key to in AndroidManifest.xml
Footer
© 2022 GitHub, Inc.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Comments
RoDo777 commented Dec 18, 2014
Build with this source, no package updated. Only changed to Android SDK V18, after it didnt work with V15 (gave this a try).
«Google Play services» are installed (Rev.22). Any other Google SDK package neccessary?
In Android 4.3.1 «Google APIs» also installed (V18 Rev.3)
Googled, found «deinstall app, clean and rebuild it», no change.
Tried it on a Samsung S3 and a Samsung S5, map not working.
I could try to put in a package name from me and build a debug.keystore file.
But normally it should work with the one here, right?
@stevenyix no need to hurry
Output in debug console after tap on map
E/Google Maps Android API( 3897): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
E/Google Maps Android API( 3897): In the Google Developer Console (https://console.developers.google.com)
Ensure that the «Google Maps Android API v2» is enabled.
E/Google Maps Android API( 3897): Ensure that the following Android Key exists:
API Key: AIzaSyDcLfO8j4seP9AGrC7w9h6gihYyvUcEXy8
E/Google Maps Android API( 3897): Android Application ( ;
): FA:BC:B6:01:05:ED:0B:D4:F5:4A:31:5A:B5:CC:F8:5C:B0:1F:DA:39;com.xamarin.Meetum
E/Google Maps Android API( 3897): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
The text was updated successfully, but these errors were encountered:
Google Maps V2 not working in production with correct key
I’m having major troubles getting Google Maps working in production within an Android app. This is what I am currently getting (the bottom is just ads).
Key Steps I have followed:
2) Internet, location, etc is working
3) The app works in DEBUG mode, but does not work when signed and installed on device via USB. I have triple checked the SHA 1 signature of the sign, etc.
4) The MapsFragment comes from the template available in Android Studio.
In production mode, the log cat displays this:
This error obviously says something is wrong with my auth? What am I doing wrong?
8 Answers 8
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
Based on the logcat output from your debuggable release build:
it would appear that you have not overridden the api key placeholder YOUR_KEY_HERE in the manifest (or separate api keys file, depending on your configuration). Replace that string, wherever it lives, with your actual key and you should be good to go.
Edit: this tutorial, if it matches your configuration, probably explains why you are only seeing this for release builds:
Return to Android Studio and paste the API key into the YOUR_KEY_HERE section of the file:
Ensure that the «Google Maps Android API v2» is enabled. I am getting this error when I try to Implement Google Maps
I am working on google maps and I am getting this error. I had done the following things:
Got My sha1 fingerprint.
Registered my project and got my project key.
I don’t know to how to get Google Maps Android API v2 enable because all the links I have tried are old and Google had changed it’s site design. Please help me. I already have wasted a lot of time on this.
My Logcat:
14 Answers 14
Trending sort
Trending sort is based off of the default sorting method — by highest score — but it boosts votes that have happened recently, helping to surface more up-to-date answers.
It falls back to sorting by highest score if no posts are trending.
Switch to Trending sort
From error it is clear that You did not enable google map api for android. To enable,
I hope it help you.
Actually I had the same problem as well. my application runs and the map is blank!
First of all check whether you have installed Google Play in you android mobile.
actually I had the problem in API Key restrictions
Google Developer Console
On your Android Mobile
Android Studio
This steps worked for me perfectly.
I had the same problem, but in the following setup:
My actual developing took place on a Windows machine. Then I bought a Mac and figured I’d develop on it. I installed Android Studio on my Mac, checked out my project from Github, then attempted a run of it using my Android phone. The APK installation carried out seamlessly. However, once the application launched on the phone, the GoogleMap wouldn’t display, even though the rest of my app was functioning normally. Then I found this link => https://github.com/react-community/react-native-maps/issues/69, went to my console.developers.google.com/ and opened my Google Maps key that I had issue with.
What I saw was that the key was restricted to Android apps. But I was working on an Android app, how could this be the issue? Anyhow, I switched Key Restriction to None, reran my app, and GoogleMap loaded just as it should had.
you may need to add new SHA-1 Certificate fingerprints to your API key application restrictions page:
to generate a SHA1 Certificate fingerprints for your debug build, use keytool of java jre as the following example command:
Make sure Maps SDK for Android is enabled in API console.
Also you might need to add your package name and SHA-1 signing-certificate fingerprint to restrict usage for your key to be fully enabled.
This may happen when the package name is incorrect in the console credential section for development and production make sure your package name is correct. In my case, the package name was wrong when I corrected it map become visible
I added a key from another test project to a main. Then I opened https://console.developers.google.com/ and added that key with a new application name (like Linh Dao wrote), but it didn’t help.
Again created a new project, generated a new key and edited it, wrote package name and SHA-1 fingerprint, like @Linh Dao wrote. Then saved. If you later with to find that key, find your project in Google console and open credentials.
I deleted an unnecessary map activity and in AndroidManifest retained
in application tag.
After several months I got the same exception in debug build. As I understood, I set wrong API key.
In LogCat I saw this exception:
Then I opened https://console.developers.google.com/, a needed project was opened, clicked on «Maps SDK for Android».
Turn to «Credentials» tab (you can also see https://developers.google.com/maps/documentation/android-sdk/signup for information). Click your API Key.
Enter your package name from LogCat above (for example, com.your_package.debug). Enter your fingerprint from LogCat (91:D6. F7). Save it.
As @Ahamed Rasheed wrote, I invalidated caches, cleaned and rebuilt the project.
Google Maps API not authenticate #25556
Comments
JacquesMarques commented Dec 19, 2018 •
But I received this error:
): 9D:89:9C:CA:DF:F0:8C:E5:83:AB:F1:24:51:49:A5:18:F7:E8:B3:B1;com.example.maps D/EGL_emulation( 4635): eglMakeCurrent: 0xa4c854e0: ver 2 0 (tinfo 0xa4c83300) D/ ( 4635): HostConnection::get() New Host Connection established 0x8c0d0300, tid 4732 W/DynamiteModule( 4635): Local module descriptor class for com.google.android.gms.googlecertificates not found. I/DynamiteModule( 4635): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4 I/DynamiteModule( 4635): Selected remote version of com.google.android.gms.googlecertificates, version >= 4 W/System ( 4635): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000005/n/x86″>
My Google MAP API Key and has no restrictions but not authenticate, can any help me with this?
The text was updated successfully, but these errors were encountered:
zoechi commented Dec 19, 2018
This suggestion #25021 (comment) to a similar issue might be worth a try.
JacquesMarques commented Dec 19, 2018 •
You did add the key to AndroidManifest.xml?
Yes I do. I not show the key just for safety reasons:
): 9D:89:9C:CA:DF:F0:8C:E5:83:AB:F1:24:51:49:A5:18:F7:E8:B3:B1;com.example.maps D/EGL_emulation( 5093): eglMakeCurrent: 0x90e2c180: ver 2 0 (tinfo 0x917fb760) D/ ( 5093): HostConnection::get() New Host Connection established 0x904278c0, tid 5106 I/art ( 5093): Background partial concurrent mark sweep GC freed 5977(779KB) AllocSpace objects, 15(1372KB) LOS objects, 31% free, 8MB/12MB, paused 12.715ms total 125.082ms D/ ( 5093): HostConnection::get() New Host Connection established 0xa4c88f80, tid 5208 W/DynamiteModule( 5093): Local module descriptor class for com.google.android.gms.googlecertificates not found. I/DynamiteModule( 5093): Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4 I/DynamiteModule( 5093): Selected remote version of com.google.android.gms.googlecertificates, version >= 4 W/System ( 5093): ClassLoader referenced unknown path: /data/user_de/0/com.google.android.gms/app_chimera/m/00000005/n/x86″>
Just to be sure, run flutter clean and try again.
I do that but don’t work
Источники информации:
- http://github.com/xamarin/VervetaCRM/issues/5
- http://stackoverflow.com/questions/27883587/google-maps-v2-not-working-in-production-with-correct-key
- http://stackoverflow.com/questions/40055893/ensure-that-the-google-maps-android-api-v2-is-enabled-i-am-getting-this-error
- http://github.com/flutter/flutter/issues/25556