Could not resolve org.greenrobot:eventbus:3.3.1.
582527512 opened this issue · 3 comments
582527512 commented
It's ok before then. After update gradle version to 7.4.2 , there got these question
"Could not resolve org.greenrobot:eventbus:3.3.1."
"Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html"
greenrobot-team commented
EventBus is available on Maven Central, as noted in the README. If you have Maven Central added to the repository section of your project it should be found:
repositories {
mavenCentral()
}
HJHL commented
Check settings.gradle
file in your project,
dependencyResolutionManagement {
repositories {
// check if it exists, add it if not
mavenCentral()
}
}
greenrobot-team commented
@HJHL Thanks! This is the new way to declare repositories globally in Gradle: https://docs.gradle.org/current/userguide/dependency_management.html#sub:centralized-repository-declaration