Android错误无法访问AbstractSafeParcelable

Android错误无法访问AbstractSafeParcelable,android,firebase,firebase-remote-config,Android,Firebase,Firebase Remote Config,我正在尝试将firebase远程配置添加到我的项目中,但它与我的gms版本冲突,错误代码: 错误:(674,25)错误:无法访问AbstractSafeParcelable 找不到com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable的类文件 当我单击其“发送给我”以获取项目的此方法时: protected void RequestLocation() { locationRequest =

我正在尝试将firebase远程配置添加到我的项目中,但它与我的gms版本冲突,错误代码:

错误:(674,25)错误:无法访问AbstractSafeParcelable 找不到com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable的类文件

当我单击其“发送给我”以获取项目的此方法时:

    protected void RequestLocation() {
    locationRequest = new LocationRequest();
    locationRequest.setInterval(10000); // for this line
    locationRequest.setFastestInterval(5000);
    locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);
}
我尝试了stackoverflow本身中的一些建议,比如将gms的版本更改为10.0.1,但最终产生了另一个错误:

错误:任务“:app:processDebugGoogleServices”的执行失败。 请通过更新google services插件的版本(有关最新版本的信息,请访问)或将com.google.android.gms的版本更新为9.0.2来修复版本冲突

我的原始build.gradle可以在这里检查:`apply plugin:

'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'
    defaultConfig {
        applicationId "my.editable.project"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 28
        versionName "1.4.4"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    lintOptions {
        disable 'MissingTranslation'
        checkReleaseBuilds false
    }

    dexOptions {
        javaMaxHeapSize "4g"
    }
}




dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile files('libs/ksoap2-android-assembly-3.5.0-jar-with-dependencies.jar')
    //compile files('libs/gcm.jar')
    //compile files('libs/gcm-src.jar')
    compile project(':firebase_plugin')
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.google.android.gms:play-services:9.0.2'
    compile 'com.google.android.gms:play-services-ads:9.0.2'
    compile 'com.google.android.gms:play-services-auth:9.0.2'
    compile 'com.google.android.gms:play-services-gcm:9.0.2'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.firebase:firebase-config:10.0.1'
}




apply plugin: 'com.google.gms.google-services'`

不清楚使用10.0.1时更改了什么。您是否将所有四个
play services-*
libs都更改为10.0.1,这样就没有9.0.2了?是的,我更改了所有'compile'com.google.android.gms:play services:9.0.2'compile'com.google.android.gms:play services广告:9.0.2'compile'com.google.android.gms:play services auth:9.0.2'compile'com.google.android.gms:play services gcm:9.0.2'`改为10.0.1及其开始其他错误您是否尝试将
firebase config
改为9.0.2?我尝试切换到9.6.1,效果不错,但后来又发生了另一个错误,但在移动项目并清理项目Tnx之后,我设法将其整理了一下。现在还不清楚在使用10.0.1时您更改了什么。您是否将所有四个
play services-*
libs都更改为10.0.1,这样就没有9.0.2了?是的,我更改了所有'compile'com.google.android.gms:play services:9.0.2'compile'com.google.android.gms:play services广告:9.0.2'compile'com.google.android.gms:play services auth:9.0.2'compile'com.google.android.gms:play services gcm:9.0.2'`到10.0.1及其开始其他错误您尝试将
firebase config
更改为9.0.2吗?我尝试切换到9.6.1,它工作正常,但随后又发生了另一个错误,但在移动项目并清除项目Tnx后,我成功地整理了它。