Can't connect to Google Maps Api Android V2

Enrico Buß

I created a small Android Map project and everything went fine until I move with my workspace to another computer. The google map is not visible and the logcat output has the following line:

07-24 16:15:24.261: E/Google Maps Android API(21868): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors)

My first thought was the missing/wrong keystore because I forgot to copy it from one computer to the other, so I took the SHA1 fingerprint from my new debug.keystore (C:\Users\Enrico.android) and created a new Api key with this fingerprint and put it to Manifest.xml. No result. My second action was to renew the google-play-services_lib but it changed nothing.

Here some interesting parts of my code and from the Api console:

SHA1:

C1:07:A9:8B:E0:B1:FF:49:B4:C3:C6:E8:3B:98:93:FF:8F:D6:36:2F

Api console:

API key:    
AIzaSyDaDJBQyg7I8_Bd3IrKChEdcNo2E7cxU6g
Android apps:   
C1:07:A9:8B:E0:B1:FF:49:B4:C3:C6:E8:3B:98:93:FF:8F:D6:36:2F;com.name.appname

Manifest.xml:

android:name="com.google.android.maps.v2.API_KEY"
android:value="AIzaSyDaDJBQyg7I8_Bd3IrKChEdcNo2E7cxU6g"/>
<uses-library android:name="com.google.android.maps" /> 

Please help me!!! EDIT: Another hint. When I first started my App on the new computer, I needed to remove my "old" version from my testphone with the hint, that the signature has changed. So in fact it can only be the wrong SHA1 fingerprint in the debug.keystore file...or?

MaciejGórski

After you have updated SHA-1 on the API Console, you may need to uninstall and install again the app.

Seems like Google Play Services is keeping "unauthorized" answer from the server in cache.

Edit:

You can try creating another API key without specifying SHA and package name. This will create a key that says "Android apps: Any app allowed". I'm a bit concerned about such possibility, because that key could be used by anyone in their apps, but for development it is not an issue.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Google Maps Android API v2

分類Dev

displaying Google Maps API v2 on real device/emulator. can't figure out error

分類Dev

Google Maps Android API v2 Authorization failure

分類Dev

Overlay an image on google maps android api v2

分類Dev

Android 2.3およびgoogle maps API v2

分類Dev

Android Google Maps API v2:方位位置を取得する

分類Dev

How to manage Markers well using google maps api v2 on android

分類Dev

How to set api key for Google maps v2

分類Dev

Google Maps V2 - API key not found Error Message

分類Dev

Google Maps Activity V2 Android Studio

分類Dev

android maps api v2 adding multiple circles

分類Dev

Google android maps api v2マーカータイトルを常に表示

分類Dev

Google map API v2 Android - Markers & scale

分類Dev

How to change Language on Android google map V2 api

分類Dev

Google Maps Android API v2のMapFragmentにカスタムコントロールを追加する方法

分類Dev

Google Maps Android API V2で白地図しか入手できないのはなぜですか?

分類Dev

Google Maps V2 APIマニフェスト、問題。

分類Dev

Circle on Google Maps for Android v2 is flickering when size changes by seekbar

分類Dev

How to animate the camera to a specified location in Google Maps v2 for Android?

分類Dev

Adding Multiple Markers in real time google maps v2 android

分類Dev

Android google maps v2 execute asynctask when user stops moving the camera

分類Dev

Add animation to default marker on setOnMarkerClickListener maps api v2 android

分類Dev

Google Maps Android API v2DEBUGとRELEASEAPIKeyの切り替え

分類Dev

Google Maps API v2Androidの動的ズーム

分類Dev

Google Maps API v2を使用したViewPager:不思議な黒いビュー

分類Dev

How can I get current zoom level from Google Map Api v2?

分類Dev

GoogleマップAndroid API v2と現在の場所

分類Dev

Google Maps Android API V2 GoogleMapsアプリが無効になっているかどうかを確認します

分類Dev

Ionic v2 Google Maps API Androidビルドエラー:AbstractSafeParcelable options.compassEnabled(controls.getBoolean( "compass"));にアクセスできません。

Related 関連記事

  1. 1

    Google Maps Android API v2

  2. 2

    displaying Google Maps API v2 on real device/emulator. can't figure out error

  3. 3

    Google Maps Android API v2 Authorization failure

  4. 4

    Overlay an image on google maps android api v2

  5. 5

    Android 2.3およびgoogle maps API v2

  6. 6

    Android Google Maps API v2:方位位置を取得する

  7. 7

    How to manage Markers well using google maps api v2 on android

  8. 8

    How to set api key for Google maps v2

  9. 9

    Google Maps V2 - API key not found Error Message

  10. 10

    Google Maps Activity V2 Android Studio

  11. 11

    android maps api v2 adding multiple circles

  12. 12

    Google android maps api v2マーカータイトルを常に表示

  13. 13

    Google map API v2 Android - Markers & scale

  14. 14

    How to change Language on Android google map V2 api

  15. 15

    Google Maps Android API v2のMapFragmentにカスタムコントロールを追加する方法

  16. 16

    Google Maps Android API V2で白地図しか入手できないのはなぜですか?

  17. 17

    Google Maps V2 APIマニフェスト、問題。

  18. 18

    Circle on Google Maps for Android v2 is flickering when size changes by seekbar

  19. 19

    How to animate the camera to a specified location in Google Maps v2 for Android?

  20. 20

    Adding Multiple Markers in real time google maps v2 android

  21. 21

    Android google maps v2 execute asynctask when user stops moving the camera

  22. 22

    Add animation to default marker on setOnMarkerClickListener maps api v2 android

  23. 23

    Google Maps Android API v2DEBUGとRELEASEAPIKeyの切り替え

  24. 24

    Google Maps API v2Androidの動的ズーム

  25. 25

    Google Maps API v2を使用したViewPager:不思議な黒いビュー

  26. 26

    How can I get current zoom level from Google Map Api v2?

  27. 27

    GoogleマップAndroid API v2と現在の場所

  28. 28

    Google Maps Android API V2 GoogleMapsアプリが無効になっているかどうかを確認します

  29. 29

    Ionic v2 Google Maps API Androidビルドエラー:AbstractSafeParcelable options.compassEnabled(controls.getBoolean( "compass"));にアクセスできません。

ホットタグ

アーカイブ