Adding Support Library to Robolectric 2.3

邮差的信 提交于 2019-12-02 11:43:05

Theoretically, instead of copying those files into the local maven repository, you should be able to use android repository directly:

apply plugin: 'java'

repositories {
    def androidHome = System.getenv("ANDROID_HOME")
    maven {
        url "$androidHome/extras/android/m2repository/"
    }
}

Note, that you have to install Android Support Repository & Google Repository first through the SDK Manager.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!