这个应用程序将无法运行,除非您更新谷歌播放服务 [英] This app won't run unless you update Google Play Services

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

问题描述

我一直在不断地目前正设法让谷歌地图Android版V2工作。
我在设备上尝试这样的:三星Galaxy S [2.3.3]和模拟器

I've been trying constantly now to get google maps for android V2 to work. I'm trying this on device : Samsung Galaxy S [2.3.3] and on emulators.

我的清单:
(我同时使用调试键尝试和释放键)

My manifest: (I've tried using both Debug key and Release key)

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

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="18" />

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

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

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIzaSyDqmCXjO-h-Yy_qGsyVrUz_icB9mCTUzLM"/>
        <activity
            android:name="com.example.klottr.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>
    </application>

</manifest>

在MainActivity XML:

The mainactivity xml:

        <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
         xmlns:tools="http://schemas.android.com/tools"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
          tools:context=".MainActivity" >

         <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="@string/hello_world" />
    <fragment
        android:id="@+id/map"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        class="com.google.android.gms.maps.SupportMapFragment"/>

</RelativeLayout>

在MainActivity的Java文件:

The mainactivity java file:

package com.example.klottr;

import com.example.klottr.R;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.SupportMapFragment;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

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

public class MainActivity extends FragmentActivity {
    GoogleMap googleMap;
 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  setContentView(R.layout.activity_main);
 }

}

我试过了谷歌网站上的指导,一些指南和技巧,从计算器以下。我倒是超过AP preciate一些提示。
我只是想把我的设备在此刻显示正确的地图,而是我得到
这个程序将无法运行,除非您更新谷歌播放服务,尽管谷歌最新版本的播放服务的安装我的设备上。

I've tried following the guide on the google website, and several guides and tricks from stackoverflow. I'd more than appreciate some tips. I'm just trying to get my device to show the map correctly at the moment, but instead I get "This app won't run unless you update Google Play Services" , Even though the latest version of Google Play Services is installed on my device.

推荐答案

谷歌更新google_play_service库中,而不是在谷歌播放服务应用程式。
因此,我建议您下载谷歌发挥Froyo的服务在Android SDK管理器,并将其插入到项目中,而不是当前的。

Google updated google_play_service library, but not the Play Services app in the google play. So I suggest you to download "Google play services for Froyo" in the Android SDK Manager and plug it to the project instead of the current one.

这篇关于这个应用程序将无法运行,除非您更新谷歌播放服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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