See this link (as I suspected) has the POM file and no jar.
Important Notes:
The distribution url is:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
Here is the error
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'AwesomePlacesApp'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/0.3.1/aapt2-proto-0.3.1.jar
It seems like AAPT2(Android Asset Packaging Tool 2) is available in Google's maven repository.
You need to include google() under repositories in build.gradle file as shown:
buildscript {
repositories {
google() // here
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0-alpha12'
}
}
allprojects {
repositories {
google() // and here
jcenter()
}
Take a look at this link for more in detail.
Note: Order also matters, if jcenter() is above google() it fails.