How To Add Parse to an Android Studio Project?

前端 未结 8 1725
野趣味
野趣味 2020-12-24 01:22

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 libr

8条回答
  •  情书的邮戳
    2020-12-24 02:12

    In your app gradle add below code

    dependencies {
        compile 'com.parse.bolts:bolts-android:1.+'
        compile 'com.parse:parse-android:1.+'
    }
    

    In AndroidManifest.xml file add below permission

    
    
    

    In your Application class inside onCreate() method add below code

    Parse.initialize(this, "application_id", "client_key");
    ParseInstallation.getCurrentInstallation().saveInBackground();
    

    then run. Hope this works, for more info https://parse.com/apps/quickstart#parse_data/mobile/android/native/existing

提交回复
热议问题