越来越无法加载地图。错误接触谷歌服务器加载、错误、服务器、地图

2023-09-07 15:08:41 作者:考试一点都不酷 ?

我读了所有的职位concering这个问题,但我不是能够解决它在我的机TEST。 我百达得到:

I read all the post concering this issue and yet I wasnt able to solve it on my mechine. I allways get:

06-23 20:04:30.011: E/Google Maps Android API(6623): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).

获取到地图中活动时。

when getting to the map activity.

我的code:

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.mobwal"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="14" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <permission android:name="com.mobwal.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
    <uses-permission android:name="com.mobwal.permission.MAPS_RECEIVE"/>
    <uses-permission android:name="com.google.android.providers.gsf.permissions.READ_GSERVICES"/>

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/logo1small"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.NoTitleBar" >

        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="KEYFROM GOOGLES CONSOLE" />

        <activity
            android:name=".FacebookStart"
            android:label="@string/app_name"
            android:windowSoftInputMode="adjustResize" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name="com.facebook.LoginActivity"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />

        <meta-data
            android:name="com.facebook.sdk.ApplicationId"
            android:value="@string/facebook_app_id" />    

    </application>

</manifest>

我从蚀preferences我SHA1指纹,这是一样的,因为我一直在使用的关键工具。事情是,我有两个.android文件夹(一个在C:\用户\ user_name.android和我的Andr​​oid SDK文件夹)我删除一个用户的尝试使用它(没有成功启动我的应用程序后,现在是不是重建),所以我就只剩下我的Andr​​oid SDK文件夹中的其中之一是没有帮助多。 我需要帮助,我试过几乎所有的东西。

I got my SHA1 fingerprint from eclipse preferences and it is the same as I had using key tool. the thing is that I had two .android folders(one on C:\Users\user_name.android and on my android sdk folder) I delete the one on the user's after trying to activate my app using it (without success and now it is not recreated) so I got left only with the one under my android sdk folder which is not helping much. I need help I tried almost anything.

推荐答案

转到 https://开头code .google.com /原料药/控制台 登录后,进入服务>谷歌地图Android的API V2和打开这个切换按钮。

Go to https://code.google.com/apis/console Once logged in, go to Services > Google Maps Android API v2 and switch on this toggle button.

小心:这是谷歌地图Android的API V2,而不是谷歌地图API第2版

Careful: it's "Google Maps Android API v2" and not "Google Maps API v2".