I am having trouble setting up an Android project on Jenkins using the Gradle plugin. I am getting the following error message:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'tablet_optimizations'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.3.1.
Required by:
:tablet_optimizations:unspecified
> Could not resolve com.android.tools.build:gradle:1.3.1.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.1/gradle-1.3.1.pom'.
> Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.1/gradle-1.3.1.pom'. Received status code 403 from server: Forbidden
This is pulling a repo from SVN through a proxy, both of which seem to be set up properly. But maybe that could be an issue here. I am also pointing towards Gradle 2.4 for this project. I have seen a few issues similar to this on here but nothing seems to be helping. I will update with any additional info if needed! Please Help!!! Thanks!
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}