0
我正在構建一個應用程序,它使用解析來使用back4app系統進行登錄。使用Back4app解析登錄屏幕
檢查了所有的代碼及其沒有錯誤,但是當我在模擬器上運行應用程序時,它確實啓動,並且在日誌cat文件中彈出以下消息:有人能幫助我瞭解錯誤。
04-04 13:32:38.355 3170-3170/com.airrocketapps.airrocketapps.fishermanspics
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.airrocketapps.airrocketapps.fishermanspics, PID: 3170
java.lang.NoClassDefFoundError: Failed resolution of: Lbolts/Task;
at com.parse.Parse.initialize(Parse.java:422) at com.airrocketapps.airrocketapps.fishermanspics.MainActivity.onCreate(MainActivity.java:128)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.ClassNotFoundException: Didn't find class "bolts.Task"
on path: DexPathList[[zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-1/base.apk", zip
file "/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_dependencies_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_0_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_1_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_2_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_3_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_4_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_5_apk.apk", zip file "
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_6_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_7_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_8_apk.apk", zip file
"/data/app/com.airrocketapps.airrocketapps.fishermanspics-
1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/vendor/lib,
/system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.parse.Parse.initialize(Parse.java:422)
at com.airrocketapps.airrocketapps.fishermanspics.MainActivity.onCreate(MainActivity.java:128)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Suppressed: java.lang.ClassNotFoundException: bolts.Task
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 16 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class
loader; no stack available
這是在第28行 –
線128 Parse.initialize代碼(新Parse.Configuration.Builder(本) .applicationId( 「2zj9Krftv0kSSZ54EQTevVFgmPtMzwh4iH6GTwXK」) .clientKey( 「kNcw2fch9oaTY85TSgpmnwDiapQpkz3xAsFP76rg」) .server(「https://parseapi.back4app.com/」).build() ); –
你不應該公開提供你的密鑰 –