Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find com.ljx.rxhttp:rxhttp-compiler:2.3.5? #515

Open
sujiewen opened this issue Nov 14, 2024 · 4 comments
Open

Could not find com.ljx.rxhttp:rxhttp-compiler:2.3.5? #515

sujiewen opened this issue Nov 14, 2024 · 4 comments

Comments

@sujiewen
Copy link

Could not determine the dependencies of task ':app:compileReleaseHttpJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:releaseHttpAnnotationProcessorClasspath'.
Could not find com.ljx.rxhttp:rxhttp-compiler:2.3.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/ljx/rxhttp/rxhttp-compiler/2.3.5/rxhttp-compiler-2.3.5.pom
- https://jcenter.bintray.com/com/ljx/rxhttp/rxhttp-compiler/2.3.5/rxhttp-compiler-2.3.5.pom
- https://jitpack.io/com/ljx/rxhttp/rxhttp-compiler/2.3.5/rxhttp-compiler-2.3.5.pom
Required by:
project :app

@liujingxing
Copy link
Owner

2.6.0及以上版本在jitpack上,之前版本在jcenter上,由于jcenter老早不维护了,所以2.3.5版本下载不了,请升级版本

@sujiewen
Copy link
Author

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugAnnotationProcessorClasspath'.
Could not find com.ljx.rxhttp:rxhttp-compiler:2.9.5.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/ljx/rxhttp/rxhttp-compiler/2.9.5/rxhttp-compiler-2.9.5.pom
- https://jcenter.bintray.com/com/ljx/rxhttp/rxhttp-compiler/2.9.5/rxhttp-compiler-2.9.5.pom
- https://jitpack.io/com/ljx/rxhttp/rxhttp-compiler/2.9.5/rxhttp-compiler-2.9.5.pom
Required by:
project :app

@sujiewen
Copy link
Author

// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"

println("根build.gradle 开始配置")
buildscript {
repositories {
google()
jcenter()
//添加
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0'
classpath 'com.tencent.bugly:symtabfileuploader:latest.release'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
println("根build.gradle 配置完成")

allprojects {
repositories {
google()
jcenter()
maven {
url 'https://jitpack.io'
}
}
}

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

apply plugin: 'com.android.application'
。。。。

dependencies {
annotationProcessor "com.ljx.rxhttp:rxhttp-compiler:${versionConfig.rxhttp_version}"
}

我是不是build.gradle还要修改什么?

@liujingxing
Copy link
Owner

注意路径,2.6.0版本起是 com.liujingxing.rxhttp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants