首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法解析io.reactivex.rxjava 2:rxjava:2.2.0

无法解析io.reactivex.rxjava 2:rxjava:2.2.0
EN

Stack Overflow用户
提问于 2018-09-23 19:31:50
回答 1查看 3.7K关注 0票数 5

我以前从未使用过这个库,现在我尝试使用它并添加所需的依赖项,但是项目没有同步。这是我的构建级:

代码语言:javascript
运行
复制
dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])

        // implement support libraries
        implementation 'com.android.support:appcompat-v7:27.0.2'
        implementation 'com.android.support:animated-vector-drawable:27.0.2'
        implementation 'com.android.support:design:27.0.2'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.android.support:support-v4:27.0.2'

        // implement firebase libraries
        implementation 'com.google.firebase:firebase-auth:11.0.4'
        implementation 'com.google.firebase:firebase-database:11.0.4'
        implementation 'com.google.firebase:firebase-storage:11.0.4'
        implementation 'com.google.firebase:firebase-core:11.0.4'

        // implement firebase-ui
        implementation 'com.firebaseui:firebase-ui-database:2.3.0'

        // implement lifecycle
        implementation 'android.arch.lifecycle:extensions:1.1.0'

        // implement circle image view
        implementation 'de.hdodenhof:circleimageview:2.2.0'

        // implement image cropper
        implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'

        // implement image compressor
        implementation 'id.zelory:compressor:2.1.0'

        // implement test
        testImplementation 'junit:junit:4.12'
    //    implementation 'io.reactivex.rxjava2:rxjava:2.1.5'
        implementation 'io.reactivex.rxjava2:rxjava:2.2.0'
    //    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    //    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'


    }



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

    configurations.all{
        resolutionStrategy.eachDependency{DependencyResolveDetails details ->
            def requested = details.requested
            if(requested.group == 'com.android.support'){
                if (!requested.name.startsWith("multidex")){
                    details.useVersion('27.0.2')
                }
            }
        }
    }
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-09-24 06:08:22

此库可在githubmaven存储库中使用。

在build.gradle文件中的所有项目中添加此存储库

代码语言:javascript
运行
复制
 mavenCentral()
   maven {
       url 'https://jitpack.io'
   }
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52469555

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档