lib: revert System.load back to System.loadLibrary

This commit is contained in:
Han Yin 2025-10-31 13:54:41 -07:00
parent f10a45f530
commit 3fa3c15c5c
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ internal class InferenceEngineImpl private constructor(
}
_state.value = InferenceEngine.State.Initializing
Log.i(TAG, "Loading native library...")
System.load(File(nativeLibDir, "libai-chat.so").absolutePath)
System.loadLibrary("ai-chat")
init(nativeLibDir)
_state.value = InferenceEngine.State.Initialized
Log.i(TAG, "Native library loaded! System info: \n${systemInfo()}")