谷歌地图 - "应用程序将无法运行,除非你更新谷歌Play业务" [英] Google Maps - "App won't run unless you update Google Play services"

查看:201
本文介绍了谷歌地图 - "应用程序将无法运行,除非你更新谷歌Play业务"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想在这里运行简单的谷歌地图教程: https://开头developers.google.com/maps/documentation/android/start

I'm just trying to run the simple Google Maps tutorial here: https://developers.google.com/maps/documentation/android/start

我对我的Nexus 4运行我的应用程序,我收到更新谷歌播放服务的消息之后,更新按钮。当我点击更新按钮,它带我到Play商店的谷歌播放服务的应用程序,但现在看来,它的更新到最新版本。

I'm running my app on my Nexus 4, and I receive the "update Google Play services" message with an Update button. When I click the Update button, it takes me to the Google Play services app on the Play Store, but it appears that it's updated to the latest version.

还有什么我可能会丢失?

Is there anything else I might be missing?

Android清单文件:

Android Manifest file:

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

    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <uses-sdk
        android:minSdkVersion="11"
        android:targetSdkVersion="16" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <uses-library android:name="com.google.android.maps" />

        <activity
            android:name="com.example.ridenotifier.MainActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="com.example.ridenotifier.ContactListActivity"
            android:label="@string/title_activity_contact_list" >
        </activity>

        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIzaSyATNKboMr-94m9GUWOlLkEgApQW4uvh4Js"
            />

    </application>

</manifest>

截图:

**

Screenshot:

**

推荐答案

据与的Andr​​oid讨论开发者在Google+上,运行模拟器新的地图API是不可能的时刻。

According to discussion with Android Developer on Google+, running the new Map API on emulator is not possible at the moment.

添加以下权限。

<permission
      android:name="yourpackageName.permission.MAPS_RECEIVE"
      android:protectionLevel="signature"/>
<uses-permission android:name="yourpackageName.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"/>

这篇关于谷歌地图 - &QUOT;应用程序将无法运行,除非你更新谷歌Play业务&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆