Hi, I’m trying to build a Native Module with Expo Modules API. I have gone through the docs. But it only contains very basic information.
I wanted to build a Native Module that wraps a existing .AAR file. Is that possible? The SDK I wanted to wrap around is this.
By using this command
npx create-expo-module expo-tuya
I tried to add the .aar file by adding line in android/build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar'])
// and other lines
}
But it doesnt seem to be loading the .aar file. The aar file is placed under example/android/app/libs/security-algorithm.aar
I also tried to load the .aar file by adding line in example/android/app/build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.aar'])
// and other lines
}
With this, it seems like it is loading. But the app crash upon launch. The error is as follows:
couldn't find DSO to load: libhermes.so caused by: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/~~q4HR5gqr_Vy18gD8DNFghA==/expo.modules.rntuya.example-Z9_imkA4V--Oeg27wvRT5g==/lib/arm64/libfolly_runtime.so"... result: 0
I can share the repo if anyone is able to help.
Any help is appreciated!