Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Self-Destructing Message Android App Adding Users Using Parse.com Creating an Account and App on Parse.com

Harsimran Singh
Harsimran Singh
3,372 Points

Gradle build failing- could not resolve com.parse.bolts:bolts-android:1.2.1

Gradle build failing- could not resolve com.parse.bolts:bolts-android:1.2.1 could not GET- 'https://jcenter.bintray.com/com/parse/bolts/bolts-android/1.2.1/bolts-android-1.2.1.pom' peer not authenticated

Post your gradle build file as well as well as the error.

Harsimran Singh
Harsimran Singh
3,372 Points

apply plugin: 'com.android.application'

android { compileSdkVersion 22 buildToolsVersion "23.0.0 rc3"

defaultConfig {
    applicationId "developer.harry.com.ribbit"
    minSdkVersion 15
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { compile fileTree(dir: 'libs', include: ['.jar']) compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.parse.bolts:bolts-android:1.2.1' compile fileTree(dir:'libs', include:'Parse-.jar') }

Below is the error----

Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not resolve com.parse.bolts:bolts-android:1.2.1. Required by: Ribbit:app:unspecified > Could not GET 'https://jcenter.bintray.com/com/parse/bolts/bolts-android/1.2.1/bolts-android-1.2.1.pom'. > peer not authenticated