How do I add a library project to Android Studio?

前端 未结 30 3985
梦谈多话
梦谈多话 2020-11-21 04:24

How do I add a library project (such as Sherlock ABS) to Android Studio?

(Not to the old ADT Eclipse-based bundle, but to the new Android Studio.)

30条回答
  •  北恋
    北恋 (楼主)
    2020-11-21 04:47

    I had a different cause of the problem so for people:

    repositories {
        mavenCentral()
    }
    

    change mavenCentral() to jcenter() and add

    allprojects {
        repositories {
            jcenter()
        }
    }
    

提交回复
热议问题