Note that we support Android 4.0 and higher. You can also check out our [API Reference]({{ site.apis.android }}) for more detailed information about our SDK.
Step 1: Download Parse-SDK-Android
Add this in your root build.gradle file (not your module build.gradle file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}Then, add the library to your project build.gradle
dependencies {
implementation "com.github.parse-community.Parse-SDK-Android:parse:latest.version.here"
}Step 2: Setup Parse Initialize Parse using your server configuration:
import com.parse.Parse;
import android.app.Application;
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Parse.initialize(new Parse.Configuration.Builder(this)
.applicationId("YOUR_APP_ID")
// if defined
.clientKey("YOUR_CLIENT_KEY")
.server("http://localhost:1337/parse/")
.build()
);
}
}The custom Application class must be registered in AndroidManifest.xml:
<application
android:name=".App"
...>
...
</application>Note that if you are testing with a server using http, you will need to add android:usesCleartextTraffic="true" to your above <application> definition, but you should only do this while testing and should use https for your final product.