Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Can't able to syn gradle with parse dependencies in android sdk

it showing error while syncing the gradle with

compile 'com.parse.bolts:bolts-android:1.+.jar'

error : Failed to resolve

1 Answer

Pablo Rocha
Pablo Rocha
10,142 Points

Make sure your gradle dependencies section looks like the code below.

  • Right click on the "app" folder with Project selected, select new directory and name it libs (might already exist).
  • Drag and drop the Parse-1.9.0.jar file into the libs folder.
  • Select File->Invalidate Caches and Restart and select Invalidate Caches and Restart.

Wait a few minutes and Android Studio should restart and everything will be in sync.

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.google.android.gms:play-services:7.0.0'
    compile 'com.parse.bolts:bolts-android:1.+'

i didn't add that bolts jar file from parse because it was continuously showing some error. Can you tell me what functionalists are present in bolts file from parse.

Pablo Rocha
Pablo Rocha
10,142 Points

Vipul Garg - That dependency will contain all the classes you will need to access and store data to your Parse account. You will need it to continue the Ribbit project.

I am unable to sync my gradle...what am I missing?