<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">AIzaSyCxVL4qigDepaIfT9ZZMfT4eZr_PPri04s
</string>
Here's the log cat:
12-23 12:11:31.091 15026-15026/? E/SELinux: [DEBUG] seapp_context_lookup: seinfoCategory = default
12-23 12:11:31.101 15026-15026/? E/SELinux: [DEBUG] seapp_context_lookup: seinfoCategory = default
12-23 12:11:31.561 15026-15062/com.example.hamees.hf_mainuserinterface E/GMPM: getGoogleAppId failed with status: 10
12-23 12:11:31.561 15026-15062/com.example.hamees.hf_mainuserinterface E/GMPM: Uploading is not possible. App measurement disabled
12-23 12:11:57.831 15026-15592/com.example.hamees.hf_mainuserinterface E/b: Authentication failed on the server.
12-23 12:11:57.831 15026-15592/com.example.hamees.hf_mainuserinterface E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
12-23 12:11:57.831 15026-15592/com.example.hamees.hf_mainuserinterface E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyCxVL4qigDepaIfT9ZZMfT4eZr_PPri04s
Android Application (<cert_fingerprint>;<package_name>): 44:56:1D:16:8F:1E:A8:6C:C3:1C:03:FC:8F:DA:2A:08:1C:48:E0:2D;com.example.hamees.hf_mainuserinterface
The logcat is giving you the EXACT reason of the loading fail:
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaSyCxVL4qigDepaIfT9ZZMfT4eZr_PPri04s
Android Application (<cert_fingerprint>;<package_name>): 44:56:1D:16:8F:1E:A8:6C:C3:1C:03:FC:8F:DA:2A:08:1C:48:E0:2D;com.example.hamees.hf_mainuserinterface
The Api key you provided is not valid. Ensure that:
Your key is activated, from the google server it can take up to several minuts
You provide the good fingerprint SHA1 (one is for release, one for debug: SHA-1 fingerprint of keystore certificate)
Your app has the permissions and everything is set to use the google map API: https://developers.google.com/maps/documentation/android-api/start?hl=en)
Related
I am trying to get Google Maps working on my Android project.
I did everything by the book but nothing works...
Google Maps Android API: Authorization failure.
Cannot resolve Identity from identityId. Dispatching as
Identities.PSEUDONYMOUS.
Ensure that the "Google Maps Android
API v2" is enabled. Ensure that the following Android Key
exists:
API Key: Android Application (<cert_fingerprint>;<package_name>):
GoogleCertificatesRslt: Package signed with unknown certificate*
The API key, fingerprint and package name are correct.
Restricting and unrestricting the API key makes no difference.
Switchen between debug and release fingerprint makes no difference either.
It simply doesn't work whatever I am trying.
Any suggestions what I am missing, doing wrong or lousy documented?
The problem was located in local.properties:
Instead of MAPS_API_KEY="AbCdEfGhi1234..." it should read MAPS_API_KEY=AbCdEfGhi1234...
Don't surround the key with ""...
I have created a demo from here : https://github.com/suchoX/PlacePicker
Done same as explained over there.
Added Api key also in my Manifest file as below inside application tag:
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="secret_api_key_not_shown"/>
Getting below error :
E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
12-05 16:22:30.108 10392-10522/com.mypackage E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
You need to enable the "Maps SDK for Android" API from the Developer Console.
Now, when you register an api key on api console for using Maps V2 on Android, you can configure it to work without restrictions, and I want to do it because I want to make some tests with the same key in various apps, and it's mandatory for me to achieve this.
I configured the key this way:
But when I'm trying to use it without restrictions active on the api key configuration, in debug mode it works perfectly but after signing my app with my keystore the tiles on the map are not being displayed and I'm getting this error on the logcat:
Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
03-02 16:49:12.158 2600-2660/? E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: YOUR_KEY_HERE
Android Application (<cert_fingerprint>;<package_name>):
What more it's necessary to do to get a key working without restrictions in various apps without indicating theirs packages and sha's ?
PD: I don't know why API Key has a "YOUR_KEY_HERE" value on the log because it's correctly specified on the xml file and I can see it on the manifest.
Finally the solution was very simple, but frustrating. In Android studio you can see this file for editing:
app > src > debug > res > values > google_maps_api.xml
And it's the debug placeholder for the key... you must also write your key here manually:
app > src > relese > res > values > google_maps_api.xml
Worked like a charm.
I work in team on that run the same application (we work with eclipse).
When i run google maps i get this error:
01-29 13:26:08.445: W/ResourceType(404): getEntry failing because entryIndex 13 is beyond type entryCount 3
01-29 13:26:08.445: W/ResourceType(404): Failure getting entry for
0x7f0c000d (t=11 e=13) in package 0 (error -2147483647)
01-29 13:26:08.445: E/GooglePlayServicesUtil(404): The Google Play
services resources were not found. Check your project configuration to
ensure that the resources are included.
In some times i get the error :
01-29 16:16:28.795: E/GooglePlayServicesUtil(31102): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
01-29 16:17:16.255: E/Google Maps Android API(31102): Authorization failure. Please see https://developers.google.com/maps/documentation/android/start for how to correctly set up the map.
01-29 16:17:16.260: E/Google Maps Android API(31102): Ensure that the following correspond to what is in the API Console: Package Name: com.applicat.meuchedet, API Key: AIzaSyAPf9_FQjkmARqhS_fbW3SdXXbLwzQXPwk, Certificate Fingerprint: 1BE3F51C82C911E280FD2808F6741CFA80F53465
This strange behavior it's occurred only me!!
The other co-workers that work on the same project(svn) get Google Maps.
I try all the answers that i found in stackoverflow.. it's doesn't work
Also i try to run the project that sit at co-worker workspace.
It's doesn't work!!
I had a similar error.
In my case it was related to the call to
map.setMyLocationEnabled(true);
in the case of use of the default map provider.
The solution was in my case to code a trivial location source and pass it with
map.setLocationSource(...);
Just to check if it is the same, try to comment out the line with setMyLocationEnabled (if you have one).
Try following steps,
Try to install Google Play services in android SDK manager
Enable the Google Maps Android API v2 service in the Google API's console
Try to add (or) refer the Google Play lib from the project
then your map will run.
I am trying to authenticate the user following this gist by Ian Barber. The button asks for the user account, but it never gets to show the authorization dialog and instead exits with the message "An internal error ocurred". Logcat shows this:
W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
W/GLSUser ( 4353): Status from wire: INVALID_KEY status: null
E/GLSUser ( 4353): Empty consent data
I/GLSUser ( 4353): GLS error: INVALID_KEY icoloma#gmail.com oauth2:https://www.googleapis.com/auth/plus.login
W/GLSUser ( 4353): Status from wire: Unknown status: UNKNOWN
The certificate used to sign my app is the same configured at my Google API Console page, and the package name is also the same.
This happens when your certificate has been added in the "Simple API Access" section instead of "Client ID for installed applications". In the Google API console of your project click "Create an OAUTH2 client ID" (NOT "Create new Android Key"), select "Android" and introduce your SHA1 and package.
I was getting a similiar error:
772-799/com.google.process.gapps W/GLSUser﹕ GoogleAccountDataService.getToken()
05-21 13:23:50.231 772-799/com.google.process.gapps W/GLSActivity﹕ [art] Status from wire: INVALID_KEY status: null
05-21 13:23:50.231 772-799/com.google.process.gapps W/GLSActivity﹕ [art] Status from wire: INVALID_KEY status: null
05-21 13:23:50.235 772-799/com.google.process.gapps I/GLSUser﹕ GLS error: INVALID_KEY my-gmail#address.com oauth2:https://www.googleapis.com/auth/plus.login
05-21 13:23:50.235 772-799/com.google.process.gapps W/GLSActivity﹕ [art] Status from wire: Unknown status: UNKNOWN
I fixed it by signing the APK using a keystore I generated. The keystore SHA was added to our Google Developer console.
One more reason why this error occurs:
If you have a sub-package, ensure you only mention your application's main package in the developer's console, not the sub-package.
ex: If your App is under com.example.myapp, if your G+ login activity is under package com.example.myapp.authentication, in the developer's console, the package name you enter should be com.example.myapp (leave out the subpackage)
In my case this error occurred probably because I used sha256withrsa algorithm to sign my APK instead of sha1withrsa. Probably - I don't know for certain as I will not change my signature keys just because Google API is dumb.