Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't import import android.hardware.camera2 classes

I imported the opencv android library to my android studio and the Camera2Renderer class has a lot of compiler errors because the android.hardware.camera2 classes can't be imported.

enter image description here

like image 969
Victory Omole Avatar asked Dec 25 '15 07:12

Victory Omole


1 Answers

I solved the problem. Jim was right, i did not have the correct target API. For the next person who has this problem and finds this thread, the solution is that you have to make sure that the build.gradle files for your project and your openCV match. Thanks to everyone who helped me, and Merry Christmas!

like image 51
Victory Omole Avatar answered Oct 26 '22 05:10

Victory Omole