3

我第一次尝试使用 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);
4

1 回答 1

6

这是 Backendless 中的一个已知问题,已在其较新的 SDK 中修复。这是 Maven 中心http://mvnrepository.com/artifact/com.backendless/backendless/3.0.8.1上的链接

于 2016-02-04T14:10:02.650 回答