gpt4 book ai didi

android - 无法解析 io.reactivex.rxjava2 :rxjava:2. 2.0

转载 作者:行者123 更新时间:2023-11-29 23:33:30 26 4
gpt4 key购买 nike

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

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')
}
}
}
}

最佳答案

这个库在 githubma​​ven 存储库 中可用

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

 mavenCentral()
maven {
url 'https://jitpack.io'
}

关于android - 无法解析 io.reactivex.rxjava2 :rxjava:2. 2.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52469555/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com