Repository: tensorflow
Issue: Failed to load native TensorFlow Lite methods
Labels: stat:awaiting response,type:support,comp:lite,TF 2.15

Hi,
I'm trying to use tensorflow lite version 2.15.0 to run my tflite model and I'm getting an error when initializing the interpreter.

I'm adding the tensor flow libraries in the gradle file 

`implementation('org.tensorflow:tensorflow-lite') { version { strictly("2.15.0") } }`

Code: 

```
isLibraryLoaded = false

private fun initInterpreter(): Interpreter? {
        val tfliteOptions = Interpreter.Options()
        tfliteOptions.setNumThreads(2)
        
        if (!isLibraryLoaded) {
            System.loadLibrary("tensorflowlite_jni")
            ARLog.d("OmniSenseMLDepthImageProcessor","Tensor flow lite Library load successful")
            isLibraryLoaded = true
        }
        return try {
            Log.d("InterpreterDelegate", "Thread id getInterpreter ==  ${Thread.currentThread().name}")
            val interpreter = org.tensorflow.lite.Interpreter(loadModelFile(resolveModelFilePath()), tfliteOptions)
            Log.d("InterpreterDelegate", "Interpreter initialized successfully")
            return interpreter
        } catch (e: Exception) {
            Log.e("InterpreterDelegate", "Error: Could not initialize $tfLiteModel interpreter!: ${e.message}")
            e.printStackTrace()
            null
        }
    }
```


TFLite version: 2.15.0
Device: Samsung S20

Error: 

```
 E  FATAL EXCEPTION: pool-140-thread-1
                                                                                                    Process: com.amazon.mShop.android.shopping, PID: 14755
                                                                                                    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: library "libtensorflowlite_jni_gms_client.so" not found
                                                                                                    	at org.tensorflow.lite.TensorFlowLite.init(TensorFlowLite.java:137)
                                                                                                    	at org.tensorflow.lite.NativeInterpreterWrapper.<init>(NativeInterpreterWrapper.java:62)
                                                                                                    	at org.tensorflow.lite.NativeInterpreterWrapperExperimental.<init>(NativeInterpreterWrapperExperimental.java:36)
                                                                                                    	at org.tensorflow.lite.Interpreter.<init>(Interpreter.java:232)
                                                                                                    	at com.a9.fez.tflite.TFLiteInterpreterDelegate.initInterpreter(TFLiteInterpreterDelegate.kt:50)
                                                                                                    	at com.a9.fez.tflite.TFLiteInterpreterDelegate.getValue(TFLiteInterpreterDelegate.kt:29)
 Caused by: java.lang.UnsatisfiedLinkError: No implementation found for void org.tensorflow.lite.TensorFlowLite.nativeDoNothing() (tried Java_org_tensorflow_lite_TensorFlowLite_nativeDoNothing and Java_org_tensorflow_lite_TensorFlowLite_nativeDoNothing__) - is the library loaded, e.g. System.loadLibrary?
                                                                                                    	at org.tensorflow.lite.TensorFlowLite.nativeDoNothing(Native Method)
                                                                                                    	at org.tensorflow.lite.TensorFlowLite.init(TensorFlowLite.java:132)
                                                                                                    	... 14 more
```