I can’t use the SDK on an M1 Mac using IntellJ CE 2021.3.
My build.gradle entry:
implementation “com.couchbase.lite:couchbase-lite-java:3.0.0-beta02” (also tried it with 2.8.4).
Anytime I try to create a database I get this error:
Caused by: java.lang.UnsatisfiedLinkError: /Users/ale/Projects/server/CouchbaseLiteTemp/c593025b447bb8502ea01ad9cf36f055/libLiteCore.dylib: dlopen(/Users/ale/Projects/server/CouchbaseLiteTemp/c593025b447bb8502ea01ad9cf36f055/libLiteCore.dylib, 0x0001): tried: ‘/Users/ale/Projects/server/CouchbaseLiteTemp/c593025b447bb8502ea01ad9cf36f055/libLiteCore.dylib’ (mach-o file, but is an incompatible architecture (have ‘x86_64’, need ‘arm64e’)), ‘/usr/lib/libLiteCore.dylib’ (no such file)
I’m using the Azul Java11 JDK, but I’ve also tried different versions of the OpenJDK (11, 16, 17).
Please help.
Thank you in advance.