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

Cannot resolve Parse object in android studio

I am trying to import the Parse API into my project following the directions on their website. However android studio still cannot resolve a Parse object. I even invalidated caches and restored android studio like it says in the android video on how to import third party API's. My code used to import the Parse API in the Android Manefest, gradle.build, and the main activity are listed below. Also if I would need to provide more lines of code to help solve the problem please let me know.

gradle.build lines: compile 'com.parse.bolts:bolts-android:1.+' compile fileTree(dir: 'libs', include: 'Parse-*.jar')

Manefest lines:

< uses-permission android:name="android.permission.INTERNET" />

< uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Main activity Parse.enableLocalDatastore(this); Parse.initialize(this, "tqvmXNMZl5MhmQMOJVGoPlXdpOoXvLw4L1m4ipnk", "y93yzhXfY6DG3H4G4eqSk29ysSTCv459JIHPbPEk");

1 Answer

Did you put the parse jar file, and the bolt jar file that you unzipped into the lib directory of your project?

Yes I did and it is still not recognizing the parse object.