I created a project with Google cloud Module. While building I was peer not authenticated error.
Next I replaced jcenter
with mavenCentral()
and was able to download and add appengine-sdk
, appengine-endpoints,appengine-endpoints-dep
.
After doing all this build is failling with the following error message.
Error:Failed to resolve: com.google.api-client:google-api-client-android:1.19.0
Stuck at this point. Please help on this issue
Thanks in advance
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.google.appengine:gradle-appengine-plugin:1.9.18'
}
}
repositories {
mavenCentral();
}
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
dependencies {
appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.18'
compile 'com.google.appengine:appengine-endpoints:1.9.18'
compile 'com.google.appengine:appengine-endpoints-deps:1.9.18'
compile 'javax.servlet:servlet-api:2.5'
}
appengine {
downloadSdk = true
appcfg {
oauth2 = true
}
endpoints {
getClientLibsOnBuild = true
getDiscoveryDocsOnBuild = true
}
}