未找到本地LCOM / JP / ALGI /实施 [英] No implementation found for native Lcom/jp/algi/
问题描述
我尝试了一切,但我想我有想过好,但它仍然表示这个错误:
未找到本地LCOM / JP / ALGI / corelib的实施; .vector([F)[F
主题ID = 11:螺纹未捕获的异常退出(组= 0x4001e578)
.cpp文件>
的externC{
JNIEXPORT jfloatArray JNICALL Java_com_jp_algi_Corelib_vector
(JNIEnv的* ENV,jobject clazz所jfloatArray cinput)
{
////
}
}
由JAVAH>
JNIEXPORT jfloatArray JNICALL Java_com_jp_algi_Corelib_vector
(JNIEnv的*,jobject,jfloatArray)
类在那里我的.java>
包com.jp.algi; 公共类corelib的{ 静态的 {
的System.loadLibrary(com_jp_algi_Corelib);
}// TestFileBroswerActivity(vstup_RGB);
公众本机浮点[]矢量(浮动[]输入);
我调用此方法throght另一个类..
心不是问题出在App.mk<
APP_ABI:= armeabi armeabi,V7A
是图书馆真的叫 libcom_jp_algi_Corelib.so
? 调用LoadLibrary()
预计,而不 LIB
preFIX和的.so <库名/ code>扩展。
库名称在Android.mk指定为 LOCAL_MODULE
。它也没有 LIB
和延伸。
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
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.
这篇关于未找到本地LCOM / JP / ALGI /实施的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!