Firebase和游戏服务库冲突

时间:2017-11-01 17:39:27

标签: android firebase google-play-services

这是我收到的完整错误。

  

11-01 13:33:51.550 3932-3932 /? E / libprocessgroup:无法生成和   chown / acct / uid_10059:只读文件系统11-01 13:34:12.744   3932-3991 / com.example.cmd.testproject E / ActivityThread:找不到   com.google.android.gms.chimera 11-01 13:34:12.745的提供商信息   3932-3991 / com.example.cmd.testproject E / NetworkRqFactoryProxy:   NetworkRequestFactoryProxy因RemoteException而失败:                                                                                     com.google.android.gms.dynamite.DynamiteModule $ zzc:不可接受   模块找到了。本地版本为0,远程版本为0。                                                                                         在com.google.android.gms.dynamite.DynamiteModule.zza(未知来源)                                                                                         在com.google.android.gms.internal.zzena。(未知来源)                                                                                         在com.google.android.gms.internal.zzena.zzh(未知来源)                                                                                         在com.google.firebase.storage.StorageReference.zzchz(未知来源)                                                                                         在com.google.firebase.storage.UploadTask.run(未知来源)                                                                                         在com.google.firebase.storage.zzs.run(未知来源)                                                                                         在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)                                                                                         在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:587)                                                                                         在java.lang.Thread.run(Thread.java:818)11-01 13:34:12.746   3932-3991 / com.example.cmd.testproject E / UploadTask:无法创建   元数据的网络请求                                                                          android.os.RemoteException                                                                              在com.google.android.gms.internal.zzena。(未知来源)                                                                              在com.google.android.gms.internal.zzena.zzh(未知来源)                                                                              在com.google.firebase.storage.StorageReference.zzchz(未知来源)                                                                              在com.google.firebase.storage.UploadTask.run(未知来源)                                                                              在com.google.firebase.storage.zzs.run(未知来源)                                                                              在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)                                                                              在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:587)                                                                              在java.lang.Thread.run(Thread.java:818)11-01 13:34:12.746   3932-3991 / com.example.cmd.testproject E / StorageException:   StorageException已发生。                                                                                发生未知错误,请检查HTTP结果代码和内部   服务器响应的异常。                                                                                 代码:-13000 HttpResult:0 11-01 13:34:12.746   3932-3991 / com.example.cmd.testproject E / StorageException:null                                                                                android.os.RemoteException                                                                                    在com.google.android.gms.internal.zzena。(未知来源)                                                                                    在com.google.android.gms.internal.zzena.zzh(未知来源)                                                                                    在com.google.firebase.storage.StorageReference.zzchz(未知来源)                                                                                    在com.google.firebase.storage.UploadTask.run(未知来源)                                                                                    在com.google.firebase.storage.zzs.run(未知来源)                                                                                    在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)                                                                                    在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:587)                                                                                    在java.lang.Thread.run(Thread.java:818)11-01 13:34:12.746   3932-3991 / com.example.cmd.testproject E / StorageException:   StorageException已发生。                                                                                发生未知错误,请检查HTTP结果代码和内部   服务器响应的异常。                                                                                 代码:-13000 HttpResult:0 11-01 13:34:12.746   3932-3991 / com.example.cmd.testproject E / StorageException:null                                                                                android.os.RemoteException                                                                                    在com.google.android.gms.internal.zzena。(未知来源)                                                                                    在com.google.android.gms.internal.zzena.zzh(未知来源)                                                                                    在com.google.firebase.storage.StorageReference.zzchz(未知来源)                                                                                    在com.google.firebase.storage.UploadTask.run(未知来源)                                                                                    在com.google.firebase.storage.zzs.run(未知来源)                                                                                    在   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)                                                                                    在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:587)                                                                                    在java.lang.Thread.run(Thread.java:818)

app level build

    apply plugin: 'com.android.application'

    android {
        compileSdkVersion 26
        buildToolsVersion "26.0.2"
        defaultConfig {
            applicationId "com.example.cmd.testproject"
            minSdkVersion 21
            targetSdkVersion 26
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'com.android.support:appcompat-v7:26.1.0'
        implementation 'com.android.support.constraint:constraint-layout:1.0.2'
        implementation 'com.android.support:support-v4:26.1.0'
        implementation 'com.google.firebase:firebase-storage:11.4.2'
        implementation 'com.google.firebase:firebase-auth:11.4.2'
        compile 'com.android.support:recyclerview-v7:26.1.0'
        compile 'com.facebook.android:facebook-android-sdk:4.27.0'
        compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'


        testImplementation 'junit:junit:4.12'
        androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
    }

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

项目级别构建

buildscript {

    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0-alpha01'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.1.0'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

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

如何解决此问题以使用firebase存储?

0 个答案:

没有答案