Eventbus: Failed to resolve : eventbus

Created on 29 Mar 2018  路  7Comments  路  Source: greenrobot/EventBus

when I use the version:3.1.1锛孍rror Occurred while building锛宐ut when I use the version 3.0.0锛宨t's no problem锛寃hat's wrong?

Most helpful comment

I just got this error, please help
I am using implementation 'org.greenrobot:eventbus:3.1.1'

All 7 comments

I just got this error, please help
I am using implementation 'org.greenrobot:eventbus:3.1.1'

@oNguyenDucManh @ningjiaqi adding mavenCentral() to allprojects -> repositories in build.gradle solved the problem

I got this error with:

  • com.android.tools.build:gradle:3.1.0
  • distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

Work OK with

  • com.android.tools.build:gradle:3.0.1
  • distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

Resolved with:

Don't need add mavenCentral() to allprojects

@buthela 3.0.1 or 3.1.0 need to update AndroidStudio?

@ningjiaqi Yes, Android Studio 3.1

Closing this then as a tooling issue.

For completeness: EventBus is published to Maven Central, however this is synced to jCenter which is added by default in new Android projects.
-ut

Was this page helpful?
0 / 5 - 0 ratings