triniwiz / nativescript-plugins

Apache License 2.0
80 stars 50 forks source link

[couchbase] @triniwiz/nativescript-couchbase@1.3.1 missing native Android classes in NS7 #111

Closed agonper closed 1 year ago

agonper commented 2 years ago

Hi @triniwiz, many thanks for these really nice plugins!

I've tried to install the latest version of the couchbase plugin, but I get this error on each operation java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics

This does not happen with 1.2.5 though. Seems like some native files are missing 😢

Thanks in advance!

agonper commented 2 years ago

Just an update. I was running NS7, after migrating to NS8 and seeing a problem with Gradle and non-https repositories I decided to give 1.3.1 another try. And this time it worked.

There seems to be something in the build process of NS8 which NS7 does not have. I think it has something to do with Kotlin, because after the migration to NS8 it has been the first time which I have seen a task related to Kotlin and this plugin in the command line output.

So this version does not seem to be compatible with NS7, but works great with NS8. I'll update the title of the issue.

bylmzio commented 2 years ago

I have the same error with NS-8 latest and couchbase latest

agonper commented 2 years ago

Hi @bunower. Using the NS CLI 8.1+ and NS 8.1+ solved the problem for me. As per 8.1 blog post: https://blog.nativescript.org/nativescript-8-1-announcement/index.html ("Plugins can now include Kotlin files in the platforms folder"). Using earlier NS versions seams to lead to the build process not knowing how to handle those files.

mamaly12 commented 2 years ago

Hi @bunower. Using the NS CLI 8.1+ and NS 8.1+ solved the problem for me. As per 8.1 blog post: https://blog.nativescript.org/nativescript-8-1-announcement/index.html ("Plugins can now include Kotlin files in the platforms folder"). Using earlier NS versions seams to lead to the build process not knowing how to handle those files.

I updated CLI version to 8.1.5: image

and also nativescript/android to 8.1.1 image

Unfortunately, I still have this error when I work with my application:

image

Can anyone help me with that?

agonper commented 2 years ago

Hello @mamaly12. Did you try with NS CLI latest version (8.2.3)?

mamaly12 commented 2 years ago

Hi @agonper, Thank you for your answer. After updating to the latest version, my problem is solved.