I am trying to integrate an SDK from the company TUYA (Smart Life App SDK) into a Flutter project as a native SDK using Java. I followed the steps that are posted on the official website, with some adaptations to make it work in a Flutter project. When all the integration is done, build of the app is ok and I try to Initialize the SDK it shows a FATAL EXCEPTION: main
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... lib\main.dart:1
√ Built build\app\outputs\flutter-apk\app-debug.apk.
E/AndroidRuntime(12996): FATAL EXCEPTION: main E/AndroidRuntime(12996): Process: com.example.project, PID: 12996 E/AndroidRuntime(12996): java.lang.UnsatisfiedLinkError: No implementation found for java.lang.Object com.tuya.smart.security.jni.SecureNativeApi.doCommandNative(android.content.Context, int, byte[], byte[], boolean, boolean) (tried Java_com_tuya_smart_security_jni_SecureNativeApi_doCommandNative and Java_com_tuya_smart_security_jni_SecureNativeApi_doCommandNative__Landroid_content_Context_2I_3B_3BZZ) E/AndroidRuntime(12996): at com.tuya.smart.security.jni.SecureNativeApi.doCommandNative(Native Method) E/AndroidRuntime(12996): at com.tuya.smart.security.jni.JNICLibrary.doCommandNative(JNICLibrary.java:55) E/AndroidRuntime(12996): at com.tuya.sdk.network.TuyaNetworkSecurity.initJNI(TuyaNetworkSecurity.java:9) E/AndroidRuntime(12996): at com.tuya.smart.android.network.TuyaSmartNetWork.initialize(TuyaSmartNetWork.java:35) E/AndroidRuntime(12996): at com.tuya.smart.sdk.TuyaSdk.initTuyaData(TuyaSdk.java:81) E/AndroidRuntime(12996): at com.tuya.smart.sdk.TuyaSdk.init(TuyaSdk.java:220) E/AndroidRuntime(12996): at com.tuya.smart.sdk.TuyaSdk.init(TuyaSdk.java:60) E/AndroidRuntime(12996): at com.tuya.smart.home.sdk.TuyaHomeSdk.init(TuyaHomeSdk.java:107) E/AndroidRuntime(12996): at com.example.project.FTuyaSmartApp.onCreate(FTuyaSmartApp.java:14) E/AndroidRuntime(12996): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1211) E/AndroidRuntime(12996): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6725) E/AndroidRuntime(12996): at android.app.ActivityThread.access$1500(ActivityThread.java:247) E/AndroidRuntime(12996): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053) E/AndroidRuntime(12996): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(12996): at android.os.Looper.loopOnce(Looper.java:201) E/AndroidRuntime(12996): at android.os.Looper.loop(Looper.java:288) E/AndroidRuntime(12996): at android.app.ActivityThread.main(ActivityThread.java:7839) E/AndroidRuntime(12996): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(12996): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E/AndroidRuntime(12996): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
If anyone has had a similar problem, please let me know, because I really don't know how to solve this problem.