简体   繁体   English

Eclipse不刷新

[英]Eclipse not refreshing

I'm getting an error on line 33 in my class, even after I comment that line out, save and close eclipse, refresh the file, move more code around, and repeat. 即使在我注释掉该行,保存并关闭Eclipse,刷新文件,移动更多代码并重复之后,我在类的第33行也遇到了错误。 Still when I try to run my app (using Run As... Android Application), I get the same error on line 33, even though the code on which it's calling an error no longer exists. 仍然,当我尝试运行我的应用程序(使用运行方式... Android应用程序)时,即使在其上调用错误的代码不再存在,第33行也会收到相同的错误。 The error is in class declarations, so I tried adding int error_here = 1/0; 该错误在类声明中,因此我尝试添加int error_here = 1/0;。 before line 33, but I still get the same error. 在第33行之前,但是我仍然遇到相同的错误。

The error I'm getting is: 我得到的错误是:

04-10 21:26:20.884: E/AndroidRuntime(7013): java.lang.UnsatisfiedLinkError: Native method not found: org.opencv.core.Mat.n_Mat:()J
04-10 21:26:20.884: E/AndroidRuntime(7013):     at org.opencv.core.Mat.n_Mat(Native Method)
04-10 21:26:20.884: E/AndroidRuntime(7013):     at org.opencv.core.Mat.<init>(Mat.java:441)
04-10 21:26:20.884: E/AndroidRuntime(7013):     at com.rose.camerapreview.CameraPreviewActivity.<init>(CameraPreviewActivity.java:33)

Of course, that call to create a new Mat no longer exists. 当然,创建新Mat调用不再存在。

Here's the code: 这是代码:

CameraBridgeViewBase mOpenCvCameraView; // this is line 35 now
native int annotateORB (long l);
int error_here = 1/0;

//Mat mImage = new Mat();
public final String TIME_TAG = "time_tag";
private static boolean mShouldAnnotateORB = true;

I guess it's a build-automatically problem. 我猜这是一个自动构建的问题。

Check Eclipse menu Project -> Build Automatically is CHECKED , like this 检查Eclipse菜单中的Project- > Build Automatic is Checked ,像这样

Have you tried doing a clean? 您是否尝试过清洁?

In the Top Menú : Project -> Clean -> Clean all projects . 顶部菜单中项目->清理->清理所有项目

If the problem has not been resolved, restart Eclipse . 如果问题尚未解决,请重新启动Eclipse

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM