Run Android test with Robolectric - dependency error

荒凉一梦 提交于 2019-12-06 03:54:24

This seems to be a proxy problem. When behind proxy you have to specify proxy settings for maven at {userHome}/.m2/settings.xml

my settings.xml looks now like:

<settings>
    <proxies>
        <proxy>
            <active>true</active>
            <host>proxy.host</host>
            <port>3128</port>
        </proxy>
    </proxies>
</settings>

below not working !!

<settings>
    <proxies>
        <proxy>
            <id>proxy-https</id>
            <active>true</active>
            <protocol>https</protocol>
            <host>proxy.host</host>
            <port>3128</port>
        </proxy>
        <proxy>
            <id>proxy-http</id>
            <active>true</active>
            <protocol>http</protocol>
            <host>proxy.host</host>
            <port>3128</port>
        </proxy>
    </proxies>
</settings>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!