且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误:找不到类org.opencv.core.Mat

更新时间:2023-11-17 21:50:16

您在此处输入了错误的类路径:

You are giving wrong class path here:

com.lumenghz.test.OpencvHelper

com.lumenghz.test.OpencvHelper

给出完整的类路径:

〜/Documents/androidworkspace/RumenTest/openCVLibrary310/build/intermediates/classes/debug:. com.lumenghz.test.OpencvHelper

~/Documents/androidworkspace/RumenTest/openCVLibrary310/build/intermediates/classes/debug:. com.lumenghz.test.OpencvHelper

  javah -d (JNI Folder Location) -classpath (JAR Locaion);(class Path)

根据您的路径示例-

 javah -d ~/Documents/androidworkspace/RumenTest/test/src/main/jni -classpath /Users/lumeng/Library/Android/sdk/platforms/android-23/android.jar;~/Documents/androidworkspace/RumenTest/openCVLibrary310/build/intermediates/classes/debug: com.lumenghz.test.OpencvHelper