0

嘿,伙计们正在尝试执行以下方法,但收到一条错误消息:

Unable to match class for part: 'Lrx/Observable;

我的方法:

public void SendNote(){


    titleStr = etxtTitle.getText().toString();


// saving objects
    NotesRealmClass notesRealmClass = new NotesRealmClass();
    notesRealmClass.setTitle("try");

// save object asynchronously
Backendless.Persistence.save(notesRealmClass, new AsyncCallback<NotesRealmClass>() {
    public void handleResponse(NotesRealmClass note) {
        // new Contact instance has been saved
        Toast.makeText(getActivity(), "Successfully posted ", Toast.LENGTH_SHORT).show();

    }

public void handleFault(BackendlessFault fault) {

    Toast.makeText(getActivity(), "" + fault.getMessage(), Toast.LENGTH_SHORT).show();
    // an error has occurred, the error code can be retrieved with fault.getCode()
}
}); }

这里我试图将一个对象保存到Backendless Server 但我收到这个错误,任何人都可以解释我这个错误试图告诉我什么?我四处寻找,但还没有得到任何东西

4

1 回答 1

0

好吧,事实证明这是一个领域的错误,根据这个https://www.bountysource.com/issues/29233605-java-lang-noclassdeffounderror-rx-observable-in-0-87-0,我们修复它只需将 compile 'io.reactivex:rxjava:1.0.16' 放在我们的成绩文件中

于 2016-02-18T14:32:28.313 回答