Reputation: 1
I try everything, but I think I have ever think OK, but it still says this error:
No implementation found for native Lcom/jp/algi/Corelib;.vector ([F)[F
threadid=11: thread exiting with uncaught exception (group=0x4001e578)
.cpp file >
extern "C"{
JNIEXPORT jfloatArray JNICALL Java_com_jp_algi_Corelib_vector
(JNIEnv *env, jobject clazz, jfloatArray cinput)
{
////
}
}
.h file generated by javah >
JNIEXPORT jfloatArray JNICALL Java_com_jp_algi_Corelib_vector
(JNIEnv *, jobject, jfloatArray)
class where I have the native methods .java>
package com.jp.algi;
public class Corelib {
static {
System.loadLibrary("com_jp_algi_Corelib");
}
// TestFileBroswerActivity(vstup_RGB);
public native float[] vector(float[] input);
I calling this method throght another class.. ISnt problem in the App.mk<
APP_ABI := armeabi armeabi-v7a
Upvotes: 0
Views: 1587
Reputation: 61380
Is the library really called libcom_jp_algi_Corelib.so
? loadLibrary()
expects the library name without the lib
prefix and .so
extension.
Library name is specified in Android.mk as LOCAL_MODULE
. It's also without lib
and extension.
Upvotes: 1