Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] NoSuchFieldError excpetion when setProgressListener() #1586

Closed
hongjingzhou opened this issue Dec 21, 2016 · 0 comments · Fixed by #1787
Closed

[Android] NoSuchFieldError excpetion when setProgressListener() #1586

hongjingzhou opened this issue Dec 21, 2016 · 0 comments · Fixed by #1787

Comments

@hongjingzhou
Copy link

Operation.setProgressListener() will crash as
//JNI DETECTED ERROR IN APPLICATION:
// JNI GetObjectField called with pending exception java.lang.NoSuchFieldError:
// no "J" field "listener" in class "Lcom/libmailcore/IMAPFetchMessagesOperation;" or its superclasses

Test code:

    final IMAPFetchMessagesOperation op = mImapSession.fetchMessagesByUIDOperation(folderPath, kind, indexSet);

    op.setProgressListener(new IMAPOperationItemProgressListener() {
        @Override
        public void itemProgress(long l, long l1) {
            progressCallback.progress(l, l);
        }
    });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant