相关疑难解决方法(0)

Google Play服务更新

昨天API 19问世,所以我现在升级了SDK和其他(包括Google Play Services)这个方法:

private boolean isGooglePlayInstalled(){
    int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    if(status == ConnectionResult.SUCCESS){
        return true;
    }else{
        ((Dialog)GooglePlayServicesUtil.getErrorDialog(status, this,10)).show();
    }
    return false;
}
Run Code Online (Sandbox Code Playgroud)

投掷线

int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);

Caused by: java.lang.IllegalStateException: The meta-data tag in your app's 
AndroidManifest.xml does not have the right value.  Expected 4030500 but found 0.
You must have the following declaration within the <application> element:
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
Run Code Online (Sandbox Code Playgroud)

如何解决?我没有元素

"com.google.android.gms.version"
在清单之前和它的工作.

这是我的表现:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.sabatsoft.driveit"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <uses-permission android:name="android.permission.INTERNET" /> …
Run Code Online (Sandbox Code Playgroud)

android google-play-services

42
推荐指数
3
解决办法
7万
查看次数

标签 统计

android ×1

google-play-services ×1