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

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?