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

[couchbase] IncompatibleClassChangeError on android #171

Open
abdallahkadour opened this issue Feb 6, 2023 · 1 comment
Open

[couchbase] IncompatibleClassChangeError on android #171

abdallahkadour opened this issue Feb 6, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@abdallahkadour
Copy link

abdallahkadour commented Feb 6, 2023

I get this issue when saving a document to the couchbase in Batch as follow:

this.database.inBatch(() => {
    documents?.forEach((document) => {
      const id = document._id ?? document.id
      let resultId
      if (id) {
        resultId = this.saveDocument(document, id)
      } else {
        resultId = this.saveDocument(document)
      }

      if (resultId) ids.unshift(resultId)
    })

env:

ns: 8.4.0
couchbase: 1.4.0
os: android
@nativescript/android: 8.4.0

ERROR Error: java.lang.IncompatibleClassChangeError: Class 'com.tns.gen.java.lang.Runnable' does not implement interface 'com.couchbase.lite.UnitOfWork' in call to 'void com.couchbase.lite.UnitOfWork.run()' (declaration of 'com.couchbase.lite.AbstractDatabase' appears in /data/app/org.vois.international.mgov-lW6EdOhp8fjIxGEC85rYOA==/base.apk)
JS: save features will be called
JS: ERROR Error: java.lang.IncompatibleClassChangeError: Class 'com.tns.gen.java.lang.Runnable' does not implement interface 'com.couchbase.lite.UnitOfWork' in call to 'void com.couchbase.lite.UnitOfWork.run()' (declaration of 'com.couchbase.lite.AbstractDatabase' appears in /data/app/org.vois.international.mgov-lW6EdOhp8fjIxGEC85rYOA==/base.apk)
JS: ERROR Error: java.lang.IncompatibleClassChangeError: Class 'com.tns.gen.java.lang.Runnable' does not implement interface 'com.couchbase.lite.UnitOfWork' in call to 'void com.couchbase.lite.UnitOfWork.run()' (declaration of 'com.couchbase.lite.AbstractDatabase' appears in /data/app/org.vois.international.mgov-lW6EdOhp8fjIxGEC85rYOA==/base.apk)

I appreciate any help.

@triniwiz triniwiz added the bug Something isn't working label Feb 6, 2023
@KG3RK3N
Copy link
Contributor

KG3RK3N commented Jun 30, 2023

Should be fixed with #180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants