Google’s new Maven registry is required for the latest support library compatible with Android 8.0. Just update the Google Maven repository as shown below:
To add them to your assembly, add maven.google.com to the Maven repository in your module level build.gradle file:
repositories { maven { url 'https://maven.google.com' // Alternative URL is 'https://dl.google.com/dl/android/maven2/' } }
Alternatively, you can update the build.gradle file as follows:
repositories { jcenter() google() }
Then add the desired library to the dependency block. For example, a map library looks like this:
dependencies { compile 'com.android.support:cardview-v7:26.1.0' }
0xalihn Sep 24 '17 at 7:48 2017-09-24 07:48
source share