我在此代码上遇到了异常 [英] I got Exception on This code what to

查看:80
本文介绍了我在此代码上遇到了异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

import com.googlecode.javacpp.Loader;
import com.googlecode.javacv.cpp.opencv_objdetect;

import android.app.Activity;
import android.os.Bundle;

public class DroidJavaCVActivity extends Activity {
    /** Called when the activity is first created. */

    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        try {

            Loader.load(opencv_objdetect.class);
            // FaceDetection.detectFaces();
        }

        catch (Exception e) {

            System.out.println("Starte end");// TODO: handle exception
        }
    }
}



Exception 
Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/googlecode/javacv/cpp/avutil;

Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/googlecode/javacv/cpp/avcodec;


Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Lcom/googlecode/javacv/cpp/avformat;

推荐答案

Exception Ljava/lang/UnsatisfiedLinkError;


这意味着您正在尝试使用找不到的类.您需要使用调试器来准确确定缺少的类.


This means you are trying to use a class that cannot be found. You need to use your debugger to identify exactly which class is missing.


这篇关于我在此代码上遇到了异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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