Skip to content

UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strtod_l" on Android 5 to 7.1 #3274

@shawn-lin-013

Description

@shawn-lin-013
  • System information
    • Android OS : Android 5 to Android 7.1
    • LiteRT version : com.google.ai.edge.litert:litert:1.4.0

The UnsatisfiedLinkError occurred when initializing the Interpreter

java.lang.UnsatisfiedLinkError: Failed to load native TensorFlow Lite methods. Check that the correct native libraries are present, and, if using a custom native library, have been properly loaded via System.loadLibrary():
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "strtod_l" referenced by "/data/app/com.xxx-2/lib/arm64/libtensorflowlite_jni.so"...

This issue had previously occurred in TensorFlow, and after migrating to LiteRT it has surfaced again:
tensorflow/tensorflow#61951

However, since only LiteRT 1.4.0 supports 16 KB compatibility, we are unable to roll back to LiteRT 1.3.0.
Notably, LiteRT 1.3.0 does not encounter this UnsatisfiedLinkError.

Could you please help us resolve this issue?
Thank you.

Metadata

Metadata

Assignees

Labels

type:AndroidFor Android related issues, including the Kotlin APItype:supportSupport Issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions