gpt4 book ai didi

android - 没有找到 void org.tensorflow.demo.env.ImageUtils 的实现

转载 作者:行者123 更新时间:2023-11-29 19:10:34 25 4
gpt4 key购买 nike

 E/AndroidRuntime: FATAL EXCEPTION: main Process: org.tensorflow.demo, PID:
18952 java.lang.UnsatisfiedLinkError: No implementation found for void
org.tensorflow.demo.env.ImageUtils.convertYUV420SPToARGB8888(byte[], int[], int,
int, boolean) (tried
Java_org_tensorflow_demo_env_ImageUtils_convertYUV420SPToARGB8888 and
Java_org_tensorflow_demo_env_ImageUtils_convertYUV420SPToARGB8888___3B_3IIIZ) at
org.tensorflow.demo.env.ImageUtils.convertYUV420SPToARGB8888(Native Method) at
org.tensorflow.demo.CameraActivity.onPreviewFrame(CameraActivity.java:113) at
android.hardware.Camera$EventHandler.handleMessage(Camera.java:1183) at
android.os.Handler.dispatchMessage(Handler.java:102) at
android.os.Looper.loop(Looper.java:148) at
android.app.ActivityThread.main(ActivityThread.java:7325) at
java.lang.reflect.Method.invoke(Native Method) at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Here I got this error when I open the Tensorflow demo.It seems like java class did not identify native function.how can I solve that?

最佳答案

armeabi-v7a 目录(或根据您的设备的其他名称)添加到 jniLibs
在此目录中放置 native 目录中的所有文件 https://ci.tensorflow.org/view/Nightly/job/nightly-android/

The directory will be same as this image

关于android - 没有找到 void org.tensorflow.demo.env.ImageUtils 的实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45529767/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com