Eventbus: Failed to resolve : eventbus

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

when I use the version:3.1.1,Error Occurred while building,but when I use the version 3.0.0,it's no problem,what'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