com.android.tools.fd.runtime.BootstrapApplication将无法运行,除非您更新Google Play服务

时间:2016-12-26 09:54:42

标签: android google-play-services

我以前在Android工作室中使用MAP活动,但此活动正在进行。1 我安装了Google Play服务,我也做了编译工作。

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.example.kimej.test1"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    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:25.1.0'
    compile 'com.google.android.gms:play-services:10.0.1'
    testCompile 'junit:junit:.12'
}

当然,已输入API密钥输入,但它不起作用。

3 个答案:

答案 0 :(得分:1)

试试这个,它适合我。 改变:

compile 'com.google.android.gms:play-services:10.0.1'

compile 'com.google.android.gms:play-services:9.6.0'

答案 1 :(得分:0)

尝试通过降级Google Play服务的版本来遵循此SO question中的建议答案。

而不是com.google.android.gms:play-services:10.0.1'使用'com.google.android.gms:play-services:9.6.0'

有关详细信息,请查看此thread

答案 2 :(得分:0)

更改
compile 'com.google.android.gms:play-services:10.2.0'

compile 'com.google.android.gms:play-services:9.6.0'