未找到本地LCOM / JP / ALGI /实施 [英] No implementation found for native Lcom/jp/algi/

查看:144
本文介绍了未找到本地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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆