关于报错:Failed to resolve: 'de.greenrobot:eventbus:2.4.0' 'de.greenrobot:greendao:2.1.0'等问题的解决办法

来源:互联网 发布:淘宝返现机器人 编辑:程序博客网 时间:2024/06/06 05:22

de.greenrobot:***需要mavenCentral 的支持,我们需要将mavenCentral() 添加到 repositories 中。具体解决办法是在工程的gradle文件中添加红色部分:

// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript {    repositories {        jcenter()    }    dependencies {        classpath 'com.android.tools.build:gradle:1.2.3'        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }}allprojects {    repositories {        jcenter()        mavenCentral()    }}

0 0
原创粉丝点击