Run Android test with Robolectric - dependency error

前端 未结 2 1949
再見小時候
再見小時候 2021-01-12 16:44

I am using Android Studio 1.2 and Windows 7

When running a robolectric test following this example:

@RunWith(CustomRobolectricRunner.class)
@Config(e         


        
2条回答
  •  渐次进展
    2021-01-12 17:14

    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:

    
        
            
                true
                proxy.host
                3128
            
        
    
    

    below not working !!

    
        
            
                proxy-https
                true
                https
                proxy.host
                3128
            
            
                proxy-http
                true
                http
                proxy.host
                3128
            
        
    
    

提交回复
热议问题