I'm using an Android Gradle command line, not Android Studio, build and I'd like to be able to build/compile in a library from mavenCentral().
I'd like to know how to be able to do that for any general library, but one thing I want is to get a certain version of 'com.google.android.gms:play-services-maps' for my build.
From: https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps
I can, for most versions, get the pom and the aar files so what do I have to do in my build.gradle, if I have access to these files, to get it to build in the project?
Most articles I saw are about how to generate a pom file, but not about how to use one in your project.
I'd really like to know how to just use a pom file in my build or how to use the information from it, but if I can get info on how to build using the aar file, that would be cool too.
Or how to use the information it gives in the 'Gradle' tab:
// https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps
compile group: 'com.google.android.gms', name: 'play-services-maps', version: '12.0.0'
This is what I currently have, many things omitted, that doesn't work:
> Could not resolve all dependencies for configuration ':_debugApkCopy'.
> Could not find com.google.android.gms:play-services-maps:12.0.0.
Searched in the following locations:
buildscript {
repositories {
mavenCentral()
}
}
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services-maps:12.0.0'
}
I've also tried using the info from the 'Gradle' tab:
repositories {
maven {
url "https://mvnrepository.com/artifact/com.google.android.gms/play-services-maps"
}
}
and
dependencies {
compile group: 'com.google.android.gms', name: 'play-services-maps', version: '12.0.0'
}
Thanks!