tflite_flutter_plugin icon indicating copy to clipboard operation
tflite_flutter_plugin copied to clipboard

install.bat not generating correct files

Open Psquare-0 opened this issue 4 years ago • 1 comments

After running the install.bat, the file generated is "libtensorflowlite_c.so" for the folders : arm64-v8a, armeabi-v7a, x86, x86_64 under the directory "project_name\android\app\src\main\jniLibs". But after building and running the app, it shows exception "libtask_text_jni.so" file not found.

Also, "libtask_text_jni.so" file is only present under "arm64-v8a" folder and not for the other above mentioned folders in the sample code. So by this what i understand is the code will only work for the smartphones with "arm64-v8a" architecture.

After using the "libtask_text_jni.so" file from the sample code, the code is working just fine in one of my laptops but the exact same code throws the same exception ("libtask_text_jni.so" file not found) in my other laptop.

In both the laptops i tested with the same flutter versions (tested with both 2.2.3 and 2.5.3).

I think the code is not updated for the files that are being downloaded using install.bat. Also, i am not able to understand why the exact code is working in one laptop and not working in other.

Please guide me if i am missing something.

Psquare-0 avatar Nov 10 '21 07:11 Psquare-0

After running the install.bat, the file generated is "libtensorflowlite_c.so" for the folders : arm64-v8a, armeabi-v7a, x86, x86_64 under the directory "project_name\android\app\src\main\jniLibs". But after building and running the app, it shows exception "libtask_text_jni.so" file not found.

Also, "libtask_text_jni.so" file is only present under "arm64-v8a" folder and not for the other above mentioned folders in the sample code. So by this what i understand is the code will only work for the smartphones with "arm64-v8a" architecture.

After using the "libtask_text_jni.so" file from the sample code, the code is working just fine in one of my laptops but the exact same code throws the same exception ("libtask_text_jni.so" file not found) in my other laptop.

In both the laptops i tested with the same flutter versions (tested with both 2.2.3 and 2.5.3).

I think the code is not updated for the files that are being downloaded using install.bat. Also, i am not able to understand why the exact code is working in one laptop and not working in other.

Please guide me if i am missing something.

I also had this problem and got it working on ARM Android phones by manually placing the libtask_text_jni.so from the example in the arm64-v8afolder. But I still have the same problem for simulators on x86.

yordikurk avatar Apr 19 '22 15:04 yordikurk