Google在模拟器中播放服务问题

时间:2016-11-05 13:42:30

标签: android android-emulator google-play-services

我正在进行地图活动,但是当我在模拟器中运行时会出现此问题:"除非您升级Google Play服务,否则此应用无法正常工作。

App Gradle:

RewriteRule ^chatroom/(.*) chats.php?chat=$1 [QSA,L]

和gradle应用程序:

apply plugin: 'com.android.application'

    android {
        compileSdkVersion 24
        buildToolsVersion "25.0.0"
        defaultConfig {
            applicationId "chris.touristmap"
            minSdkVersion 19
            targetSdkVersion 24
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            multiDexEnabled true
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        compile fileTree(include: ['*.jar'], dir: 'libs')
        androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:24.2.1'
        compile 'com.google.android.gms:play-services:9.8.0'
        testCompile 'junit:junit:4.12'
        compile 'com.google.android.gms:play-services-maps:9.8.0'
        compile 'com.google.android.gms:play-services-appindexing:9.8.0'
    }

清单:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案