Android constraint-layout-1.1.3.aar cannot download layout, parsing error

error

A problem occurred configuring project ':app.bluetooth'.
> Could not resolve all dependencies for configuration ':app.bluetooth:_debugCompile'.
   > A problem occurred configuring project ':lib.com'.
      > Could not download constraint-layout.aar (com.android.support.constraint:constraint-layout:1.1.3)
         > Could not get resource 'https://maven.google.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.aar'.
            > Could not GET 'https://maven.google.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.aar'.
               > Connect to maven.google.com:443 [maven.google.com/216.58.200.46] failed: Connection timed out: connect

Solutions:

  • Downgrade

Will: (My gradle is 2.3.0)

compile 'com.android.support.constraint:constraint-layout:1.1.3'

Reduce to

compile 'com.android.support.constraint:constraint-layout:1.0.2'

Guess you like

Origin blog.csdn.net/weixin_44819566/article/details/112763428