第一次启动Backendless时出现奇怪的错误

时间:2016-02-04 13:57:17

标签: android backendless

我正试图用Backendless第一次运行我的应用程序。我收到了这个错误:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/backendless/BackendlessCollection;
    at com.backendless.Persistence.<init>(Persistence.java:72)
    at com.backendless.Persistence.<clinit>(Persistence.java:62)
    at com.backendless.Persistence.getInstance(Persistence.java:66)
    at com.backendless.Backendless.<clinit>(Backendless.java:43)
    at com.asd.asd.android.AndroidLauncher.onCreate(AndroidLauncher.java:89)
    at android.app.Activity.performCreate(Activity.java:6289)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2758)
    at android.app.ActivityThread.access$900(ActivityThread.java:177)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1448)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    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:1400)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)


Caused by: java.lang.ClassNotFoundException: Didn't find class "com.backendless.BackendlessCollection" on path: DexPathList[[zip file "/data/app/com.asd.asd.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.asd.asd.android-1/lib/arm, /vendor/lib, /system/lib]]

由于我甚至不使用BackendlessCollection类,因此堆栈跟踪无法解释可能出错的问题。 错误点在:

Backendless.initApp(this,app_ID,android_ID, version_id);

1 个答案:

答案 0 :(得分:6)

这是Backendless中的一个已知问题,它已在新版SDK中得到修复。这是关于maven central http://mvnrepository.com/artifact/com.backendless/backendless/3.0.8.1

的链接