Execution failed for task ':javaPreCompileDebug'.
> Could not resolve all files for configuration ':debugCompileClasspath'.
在build.gradle 的repositories中 加上google这个配置就好了。
repositories {
google()
jcenter()
maven{ url 'https://maven.aliyun.com/repository/google'}
}
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
maven{ url 'https://maven.aliyun.com/repository/google'}
}