For things to compile via command line I needed to include the maven repo in BOTH buildscript
and allprojects
.
root build.gradle
:
buildscript {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha2'
...
}
}
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}
It's needed in the buildscript
block to find the AGP, and in allprojects
block to find android.arch
and com.android.databinding
packages (and others)
UPDATE:
It looks like the new repo is just called google()
but I still needed to declare it in both places.