java - Android Studio - Error cannot find symbol class R while compiling OpenCV -
i'm trying compile project opencv keep getting problem: error:(5, 18) error: cannot find symbol class r
the error occurring in this: import org.opencv.r;
this part of code i'm getting error:
package br.raphael.extended; import java.util.list; import org.opencv.r; import org.opencv.android.utils; import org.opencv.core.mat; import org.opencv.core.size; import org.opencv.highgui.highgui; import br.raphael.detector.fpsmeterextended; import android.app.activity; import android.app.alertdialog; import android.content.context; import android.content.dialoginterface; import android.content.res.typedarray; import android.graphics.bitmap; import android.graphics.canvas; import android.util.attributeset; import android.util.log; import android.view.surfaceholder; import android.view.surfaceview; /** * basic class, implementing interaction camera , opencv library. * main responsibility of - control when camera can enabled, process frame, * call external listener make adjustments frame , draw resulting * frame screen. * clients shall implement cvcameraviewlistener. */ public abstract class camerabridgeviewbaseextended extends surfaceview implements surfaceholder.callback { private static final string tag = "camerabridge"; private static final int max_unspecified = -1; private static final int stopped = 0; private static final int started = 1; private int mstate = stopped; private bitmap mcachebitmap; private cvcameraviewlistener2 mlistener; private boolean msurfaceexist; private object msyncobject = new object(); protected int mframewidth; protected int mframeheight; protected int mmaxheight; protected int mmaxwidth; protected int mpreviewformat = highgui.cv_cap_android_color_frame_rgba; protected int mcameraindex = -1; protected boolean menabled; protected fpsmeterextended mfpsmeter = null; public camerabridgeviewbaseextended(context context, int cameraid) { super(context); mcameraindex = cameraid; } public camerabridgeviewbaseextended(context context, attributeset attrs) { super(context, attrs); int count = attrs.getattributecount(); log.d(tag, "attr count: " + integer.valueof(count)); typedarray styledattrs = getcontext().obtainstyledattributes(attrs, r.styleable.camerabridgeviewbase); if (styledattrs.getboolean(r.styleable.camerabridgeviewbase_show_fps, false)) enablefpsmeter(); mcameraindex = styledattrs.getint(r.styleable.camerabridgeviewbase_camera_id, -1); getholder().addcallback(this); mmaxwidth = max_unspecified; mmaxheight = max_unspecified; }
if getting error mentioning import org.opencv.r , means there error in of xml view page. recheck xml page
Comments
Post a Comment