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)
这里我在打开Tensorflow演示时遇到了这个错误。好像java类没有识别本机函数。我可以解决这个问题吗?
答案 0 :(得分:2)
将 armeabi-v7a 目录(或根据您设备的其他名称)添加到 jniLibs 。
在此目录中放置本地目录https://ci.tensorflow.org/view/Nightly/job/nightly-android/