Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Add Parse to an Android Studio Project?

I'm trying to use the Parse library in Android Studio. I have used the basic example on their website and added the jar to the libs folder as well as added as a global library. Nothing seems to be working without errors:

Gradle: package com.parse does not exist Gradle: package com.parse does not exist Gradle: package com.parse does not exist Gradle: cannot find symbol variable Parse Gradle: cannot find symbol variable ParseAnalytics Gradle: cannot find symbol class ParseObject  Gradle: cannot find symbol class ParseObject 

Android Studio gives no errors in the code.

like image 630
ryebread761 Avatar asked May 17 '13 16:05

ryebread761


People also ask

What is parse Android studio?

What is Parse? Parse is an open-source Android SDK and back-end solution that enables developers to build mobile apps with shared data quickly and without writing any back-end code or custom APIs. Parse is a Node.

What would you use to store some basic data in parse?

The Local Datastore You can use this for data that doesn't need to be saved to the cloud, but this is especially useful for temporarily storing data so that it can be synced later. To enable the datastore, call Parse.


1 Answers

I encountered the same problem too and here's what I did:

  • I placed the entire Parse-1.2.5 in the libs folder (I didn't have to create the folder as Parse's quickstart said).
  • Open the build.grade file. There are two of them - open the one that's at the same level as the src folder
  • You'll see two instances of "dependencies". Add the following to the "dependencies" that is NOT nested under "buildscript":

    compile files('libs/Parse-1.2.5/Parse-1.2.5.jar')

If that still doesn't work, try right clicking the Parse-1.2.5.jar file and select "Add to Project Library"

Hope that helps!

like image 132
quitePro Avatar answered Oct 06 '22 04:10

quitePro