Parse Android SDK issue -


i'm developing app use parse sdk. working years ago, not working , crashing. debugging on android studio 2.2.3 , debug app when generated apk file , installed on phone, app crashed. when debugging on android studio 2.3.3, crashed , couldn't debug it.

here log of crash

fatal exception: main process: com.steaklocker.steaklocker, pid: 2308 java.lang.illegalaccesserror: method 'void bolts.task.()' inaccessible class 'bolts.taskcompletionsource' (declaration of 'bolts.taskcompletionsource' appears in /data/app/com.steaklocker.steaklocker-1/base.apk:classes10.dex) @ bolts.taskcompletionsource.(taskcompletionsource.java:18) @ com.parse.parsetaskutils.callbackonmainthreadasync(parsetaskutils.java:100) @ com.parse.parsetaskutils.callbackonmainthreadasync(parsetaskutils.java:72) @ com.parse.parsetaskutils.callbackonmainthreadasync(parsetaskutils.java:59) @ com.parse.parsepush.subscribeinbackground(parsepush.java:264) @ com.xxx.xxx.xxxapplication.oncreate(steaklockerapplication.java:65) @ android.app.instrumentation.callapplicationoncreate(instrumentation.java:1012) @ android.app.activitythread.handlebindapplication(activitythread.java:4553) @ android.app.activitythread.access$1500(activitythread.java:151) @ android.app.activitythread$h.handlemessage(activitythread.java:1364) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:135) @ android.app.activitythread.main(activitythread.java:5254) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:903) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:698)

here relational information on grade.

compilesdkversion = 22 buildtoolsversion = "23.0.2" minsdkversion = 21 targetsdkversion = 23  compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.parse.bolts:bolts-tasks:1.3.0' compile 'com.parse:parse-android:1.13.1' compile 'com.parse:parseui-widget-android:0.0.1' compile 'com.parse:parsefacebookutils-v4-android:1.10.3@aar' 

you using old version of parse sdk. try new version, this:

compile('com.facebook.android:facebook-android-sdk:4.6.0') {     exclude module: 'bolts-android' } compile 'com.parse:parse-android:1.15.6' compile 'com.parse:parsefacebookutils-v4-android:1.10.4@aar' 

and in application:

    parse.initialize(new parse.configuration.builder(getapplicationcontext())             .clientbuilder(builder)             .clientkey("clientkey")             .server("https://server.com/parse")             .build()); 

Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -