Android 更新google play后google map v2不工作

Android 更新google play后google map v2不工作,android,google-maps,google-play,Android,Google Maps,Google Play,不久前我的硬盘坏了,我买了一个新的。所以我重新安装了android sdk,我的应用程序运行正常,但现在地图是空白的。我甚至为我的新sha1创建了新的android密钥,但地图仍然是空白的,可能是我的清单文件有问题 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.

不久前我的硬盘坏了,我买了一个新的。所以我重新安装了android sdk,我的应用程序运行正常,但现在地图是空白的。我甚至为我的新sha1创建了新的android密钥,但地图仍然是空白的,可能是我的清单文件有问题

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

    <uses-permission android:name="android.permission.INTERNET" />

    <permission
        android:name="com.example.poputkaonline.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="android.permission.WAKE_LOCK" >
    </uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" >
    </uses-permission>
    <uses-permission android:name="in.wptrafficanalyzer.locationroutedirectionmapv2.permission.MAPS_RECEIVE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />

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

    <application
        android:allowBackup="true"
        android:hardwareAccelerated="true"
        android:icon="@drawable/logo"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <service android:name="com.library.GPSService" />

        <activity
            android:name="com.example.poputkaonline.DashboardActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.example.poputkaonline.LoginActivity"
            android:label="@string/title_activity_login"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.ChoiceActivity"
            android:label="@string/title_activity_choice"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.RegWithoutRegionActivity"
            android:label="@string/title_activity_reg_without_region"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.RegwithoutregionStepTwoActivity"
            android:label="@string/title_activity_regwithoutregion_step_two"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.RegWithoutRegionDriverActivity"
            android:label="@string/title_activity_reg_without_region_driver"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.RegwithoutRegionDriverStepTwoActivity"
            android:label="@string/title_activity_regwithout_region_driver_step_two"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.RegWithoutRegionStepThreeActivity"
            android:label="@string/title_activity_reg_without_region_step_three"
            android:screenOrientation="portrait" >
        </activity>
        <activity
            android:name="com.example.poputkaonline.MapActivity"
            android:label="@string/title_activity_map"
            android:screenOrientation="portrait" >
        </activity>
        <meta-data
            android:name="com.google.android.gms.version"
             android:value="@integer/google_play_services_version" />   
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIzaSyBqgOoGExrrm5em04onPFTVktlLH5k04Mw" />

        <activity
            android:name="com.example.poputkaonline.ForgetPasswordActivity"
            android:label="@string/title_activity_forget_password" >
        </activity>
        <provider
            android:name="com.loaders.LoaderInbox$SimpleProvider"
            android:authorities="com.loaders.loaderinbox" />
        <provider
            android:name="com.loaders.LoaderSent$SimpleProvider"
            android:authorities="com.loaders.loadersent" />
    </application>

</manifest>
并更改了api_密钥

我该怎么做才能重新绘制地图?谢谢

11-21 15:54:19.759: E/GooglePlayServicesUtil(3185): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
11-21 15:54:19.819: D/libc(3185): [NET] getaddrinfo  hn 19, servname NULL, ai_family 0+
确保您的

android:name=com.google.android.maps.v2.API\u KEY
android:value=AIzaSyBqgOoGExrrm5em04onPFTVktlLH5k04Mw您需要获得另一个api密钥。由于sha1散列中的更改,当我们更改开发环境时,需要更改api密钥。将旧钥匙换成新钥匙,您就可以开始了。

到底是什么错误,请从电话日志中检查。只有这样,我们才能联系谷歌服务器。可能是自闭症。听起来更像。按照下面的答案再次更改API密钥不,地图仍然是空白的从头开始生成SHA1密钥并获取API_密钥。你用的是旧的SHA1钥匙吗?因为你的新HDDit不起作用。我知道我应该用新的sha1换钥匙,但还是没用。我得到了sha1密钥,就像这个keytool-v-list-keystore debug.keystore,在按下密码请求后,它给了我sha1、md5等。对吗?你确定你的手机上的wifi已经打开了吗??如果没有logcat,这是我最好的猜测最后它成功了解决方案很奇怪,我只需要从te设备卸载应用程序,然后重新安装
11-21 15:54:19.759: E/GooglePlayServicesUtil(3185): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
11-21 15:54:19.819: D/libc(3185): [NET] getaddrinfo  hn 19, servname NULL, ai_family 0+