I am currently working on an app that uses Google Maps API v2. But the map view only shows the gray background, the Google logo and the zoom-button.
Here are the error messages:
10-27 10: 50: 25.30 9: d / request (18335): open for connection: https: // Clients4.google.com/glm/mmap/api 10-27 10: 50: 25.30 9: D / Request (18335): Open Connection 10-27 10:50: 26.239: D / Request (18335): DRD (24) : 62 | 147 10-27 10: 50: 26.239: D / Request (18335): Approx 10-27 10: 50: 26.239: D / Request (18335): Error in Processing: com.google.maps.api.android.lib6. Bd @ 409cf570 10-27 10: 50: 26.239: D / request is not retrying (18335): try again: com.google.maps.api.android.lib6.ccau @ 409b25b8
and second: <10 p> <10> E / Google Maps Android API (18335): failed to load the map. Error connecting to Google servers This is probably an authentication problem (but may be due to network errors).
My API includes my API key and various permissions:
& Lt; Use-permission Android: name = "de.hobbit.xmltest.permission.MAPS_RECEIVE" /> & Lt; Use-sdk android: minSdkVersion = "8" Android: targetSdkVersion = "8" /> & Lt; Use-enabled Android: glEVersion = "0x00020000" Android: required = "true" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_NETWORK_STATE" /> & Lt; Usage-permission Android: name = "android.permission.INTERNET" /> & Lt; Use-permission Android: name = "com.google.android.providers.gsf.permission.READ_GSERVICES" /> & Lt; Usage-permission Android: name = "android.permission.WRITE_EXTERNAL_STORAGE" /> & Lt ;! - Required to show current location - & gt; & Lt; Usage-permission Android: name = "android.permission.ACCESS_COARSE_LOCATION" /> & Lt; Usage-permission Android: name = "android.permission.ACCESS_FINE_LOCATION" /> & Lt; Android Android: allowBackup = "true" android: icon = "@draubable / IC_Luncher" Android: label = "@ string / app_name" Android: Theme = "@ Style / Aaptim" & gt; & Lt; Meta-Data Android: name = "com.google.android.gms.version" android: value = "@ integer / google_play_services_version" /> & Lt; Meta-Data Android: name = "com.google.android.maps.v2.API_KEY" Android: value = "SOMEKEY" /> & Lt; Activity Android: name = ". Main Activity" Android: label = "@ string / app_name" & gt; & Lt; Intent-Filter & gt; & Lt; Action Android: name = "android.intent.action.MAIN" /> & Lt; Category android: name = "android.intent.category.LAUNCHER" /> & Lt; / Intent-Filter & gt; & Lt; / Activity & gt; & Lt; Activity Android: name = ". SingleActivity" android: label = "@ string / title_activity_single" & gt; & Lt; / Activity & gt; & Lt; / Application & gt; & Lt; / Reveal & gt;
I hope someone can get my fault.
Thank you.
I used the wrong keystore ...
To use the debug keystore Instead, I used my actual keystore.
To access Debug Keystore in Excel,
1. Go to Window -> Preferences-> Android-> Build
2. Copy SHA1 Fingerprint
3. Generate an API Key in Developers Console Using Debug Keystore
Comments
Post a Comment