解析Android SDK问题

时间:2017-08-14 18:29:25

标签: android android-studio parse-platform android-sdk-tools android-sdk-manager

我正在开发一个使用Parse SDK的应用。它在一年前工作,但现在它没有工作和崩溃。 我也在Android studio 2.2.3上调试,我可以调试应用程序但是当我生成apk文件并将其安装在手机上时,应用程序崩溃了。 当我在android studio 2.3.3上调试时,它崩溃了,无法调试它。

这是崩溃日志

  

致命的例外:主要                                                                              处理:com.steaklocker.steaklocker,PID:2308                                                                              java.lang.IllegalAccessError:Method' void bolts.Task。()'是   类&bolt; bolt无法访问.TaskCompletionSource' (宣言)   ' bolts.TaskCompletionSource'出现在   /data/app/com.steaklocker.steaklocker-1/base.apk:classes10.dex)                                                                                  在bolt.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)                                                                                  at 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)

以下是关于成绩的关系信息。

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'

1 个答案:

答案 0 :(得分:0)

您正在使用旧版本的解析sdk。 尝试使用新版本,如下所示:

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'

在您的申请中:

    Parse.initialize(new Parse.Configuration.Builder(getApplicationContext())
            .clientBuilder(builder)
            .clientKey("clientkey")
            .server("https://server.com/parse")
            .build());