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 trialVipul Garg
354 PointsCan'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
10,142 PointsMake 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.+'
Vipul Garg
354 PointsVipul Garg
354 Pointsi 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
10,142 PointsPablo Rocha
10,142 PointsVipul 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.
Kevin Nguyen
Courses Plus Student 99 PointsKevin Nguyen
Courses Plus Student 99 PointsI am unable to sync my gradle...what am I missing?