Architecture-components-samples: Can't use maven.google.com from China

Created on 24 May 2017  路  6Comments  路  Source: android/architecture-components-samples

compile "android.arch.lifecycle:runtime:1.0.0-alpha1"
compile "android.arch.lifecycle:extensions:1.0.0-alpha1"
annotationProcessor "android.arch.lifecycle:compiler:1.0.0-alpha1"

in China, all above can not build success.can you apply some realse jar for us

Most helpful comment

@wafer-li
thank you! I chang the url maven.google.com to https://dl.google.com/dl/android/maven2/
and then i build success!

All 6 comments

@yigit is there something we can do about this?

@JoseAlcerreca
Nowadays, we can access dl.google.com from China to download the Android SDK, while long time ago, we had to use VPN or something else to achieve that.

Could your guys do the same thing with maven.google.com again?

@wafer-li
thank you! I chang the url maven.google.com to https://dl.google.com/dl/android/maven2/
and then i build success!

Optional edit Windows HOSTS(C:\Windows\System32\drivers\etc)
add below line:

216.58.217.206 maven.google.com

That works for me!

it doesn't work for me :(

    maven { url "https://dl.google.com/dl/android/maven2/" }
Was this page helpful?
0 / 5 - 0 ratings