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

Qingyu Meng
Qingyu Meng
3,007 Points

Cannot import parse to project on Android Studio

I have already add the Parse-1.5.1.jar to the libs, but when I try to import it, it cannot be resolved.

6 Answers

Just to be sure, did you include the .lib file as a dependancy by going into the module section of the project structure?

Eric De Wildt
PLUS
Eric De Wildt
Courses Plus Student 13,077 Points

Yes the problem might consist in the build.gradle file.

Should look like this

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile files('libs/Parse-1.5.1.jar')



}

Ty Eric, I was having this problem

Susanna Remec
Susanna Remec
12,316 Points

I solved this puzzle by syncing the project with gradle files. The dependencies had added themselves but the sync was needed for the project to run. Just hit the button.

Noam Elbaz
Noam Elbaz
5,672 Points

I found that you need to bring the entire unzipped Parse sdk into the "libs" and then right click and add to library on the parse and bolts file separately. And double check that gradle dependecies are there. NOTE: dont copy and paste above. you might have a different parse version than posted.

I ran the test data and every worked.

I was so confused...then i just right clicked Parse-1.8.2.jar and "add as library" and clicked ok. This allowed me to import.

Oca Brown
Oca Brown
5,633 Points

Still stuck on adding Parse.com to Android Studio , I have rebuilt the project, searched the internet for step-by-step instructions and come up empty. I am getting errors at just about every stage. I even searched for eclipse Android SDK to download and could not find it.

Oca Brown
Oca Brown
5,633 Points

Please see below

dependencies {

compile 'com.android.support:appcompat-v7:21.0.3'
compile files('src/main/libs/Parse-1.8.3.jar')
compile 'com.parse.bolts:bolts-android:1.+'

}