在Android Studio Emulator上运行Google地图活动时出错

在Android Studio Emulator上运行Google地图活动时出错,android,google-maps,android-studio,android-emulator,android-maps-v2,Android,Google Maps,Android Studio,Android Emulator,Android Maps V2,更新2: 我将build.gradle(模块:app)的行从 编译'com.google.android.gms:play services:8.1.0' 致: 编译'com.google.android.gms:play services地图:8.3.0' 现在我得到一个错误: 'W/GooglePlayServicesUtil: Google Play services out of date. Requires 8298000 but found 8185470' 模拟器还有一个按钮,

更新2:

我将build.gradle(模块:app)的行从

编译'com.google.android.gms:play services:8.1.0'

致:

编译'com.google.android.gms:play services地图:8.3.0'

现在我得到一个错误:

'W/GooglePlayServicesUtil: Google Play services out of date.  Requires 8298000 but found 8185470'
模拟器还有一个按钮,屏幕上现在显示“更新”,并显示“除非您更新Google Play服务,否则XXX不会运行。”

更新:

我在错误行中注意到:

Android Application (<cert_fingerprint>;<package_name>): 63:99:6C:AC:5A:45:3C:8B:26:D1:7F:45:52:E5:FB:01:A3:00:8E:E2;com.lightningboltstudios.audubontrailmap
致:

然后我开始出现这个新错误:

E/b: Authentication failed on the server.
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.
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: (redacted)
Android Application (<cert_fingerprint>;<package_name>): 63:99:6C:AC:5A:45:3C:8B:26:D1:7F:45:52:E5:FB:01:A3:00:8E:E2;com.lightningboltstudios.audubontrailmap
我的google_maps_api.xml值文件是:

<resources>
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">(redacted)</string>

(修订)

这是目前Android Studio模拟器和Genymotion作为插件的限制。您只需使用一台实际的设备,即可在此时(2015年12月14日)处理任何使用google play服务的设备。

模拟器没有提供play服务,因此您需要以某种方式安装它。我从来没有让它工作过。当我一周前第一次去他们的网站试用时,它工作得很好。他们有一个循序渐进的过程。但这次它不起作用了。
E/b: Authentication failed on the server.
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.
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: (redacted)
Android Application (<cert_fingerprint>;<package_name>): 63:99:6C:AC:5A:45:3C:8B:26:D1:7F:45:52:E5:FB:01:A3:00:8E:E2;com.lightningboltstudios.audubontrailmap
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.lightningboltstudios.audubontrailmap.TrailMapActivity" />
    package com.lightningboltstudios.audubontrailmap;

    import android.support.v4.app.FragmentActivity;
    import android.os.Bundle;

    import com.google.android.gms.maps.CameraUpdateFactory;
    import com.google.android.gms.maps.GoogleMap; 
    import com.google.android.gms.maps.OnMapReadyCallback;
    import com.google.android.gms.maps.SupportMapFragment;
    import com.google.android.gms.maps.model.LatLng;
    import com.google.android.gms.maps.model.MarkerOptions;

    public class TrailMapActivity extends FragmentActivity implements     OnMapReadyCallback {

    private GoogleMap mMap;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_trail_map);
        // Obtain the SupportMapFragment and get notified when the map is ready to be used.
        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.map);
        mapFragment.getMapAsync(this);
    }


    /**
     * Manipulates the map once available.
     * This callback is triggered when the map is ready to be used.
     * This is where we can add markers or lines, add listeners or move the camera. In this case,
     * we just add a marker near Sydney, Australia.
     * If Google Play services is not installed on the device, the user will be prompted to install
     * it inside the SupportMapFragment. This method will only be triggered once the user has
     * installed Google Play services and returned to the app.
     */
    @Override
    public void onMapReady(GoogleMap googleMap) {
        mMap = googleMap;

        // Add a marker in Sydney and move the camera
        LatLng sydney = new LatLng(-34, 151);
        mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
        mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
    }
}
<resources>
<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">(redacted)</string>