title: Android opencv library reference is not working correctly
body: <p>At first i would like to say that I am working for 5 hours to solve that problem and I tried really hard to describe it well, if something is not clear please tell me.</p>
  
  <p>I have downloaded <code>Tegra Developer Pack</code> imported <code>Open CV 2.4.3</code> library project and sample projects which work great for on my device <code>Samsung Galaxy Note 2</code>. I have tried many ways to make my opencv project work but they do not.</p>
  
  <p>I have created project and added <code>Android library reference</code> in the <code>project properties</code>. Exacly as every sample project has it done. But "they" get green tick but I at first get the green tick but when I enter properties again red cross appears :</p>
  
  <p>My project:
  <img src="https://i.stack.imgur.com/iyaVD.png" alt="enter image description here"></p>
  
  <p>Sample project:</p>
  
  <p><img src="https://i.stack.imgur.com/sChDf.png" alt="enter image description here"></p>
  
  <p>In the end my project is full of errors(cannot import class etc.), sample projects are clean.</p>
  
  <p>I have also tried to import OpenCv by adding its jar file to build path like this.</p>
  
  <p><img src="https://i.stack.imgur.com/gIr1h.png" alt="enter image description here"></p>
  
  <p>Then import problems in <code>java</code> files are gone but stil any <code>xml</code> containing OpenCV parts will not work.</p>
  
  <p>Example:
        </p>
  
  <hr>
  
  <p>Result:</p>
  
  <p><img src="https://i.stack.imgur.com/DezaB.png" alt="enter image description here"></p>
  
  <pre><code>The following classes could not be instantiated:
  - org.opencv.android.JavaCameraView (Open Class, Show Error Log)
  See the Error Log (Window &gt; Show View) for more details.
  Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse
  
  java.lang.ClassNotFoundException: org.opencv.R$styleable
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  </code></pre>
  
  <p>....</p>
  
  <p><strong>The weird thing is when i click Open Class in error listing above it will open the right <code>JavaCameraView</code> source code</strong></p>