Truong-An
Truong-An

Reputation: 51

Error: cannot find symbol variable GL_TEXTURE_EXTERNAL_OES + OpenCV on Android Studio

I am beginner in developing Opencv application on Android. I have two error in compiling an OpenCV sample (15 puzzle) on Android:
1. error: cannot find symbol variable GL_TEXTURE_EXTERNAL_OES
2. error: package android.hardward.camera2 does not exist.

Upvotes: 4

Views: 4847

Answers (2)

migueldo
migueldo

Reputation: 311

Change the compile SDK version and build tools to latest BUT on module opencv in Project Structure.

configuration project structure

Upvotes: 21

Cristian Q
Cristian Q

Reputation: 647

Change the compile SDK Version and Build tools( 21 or latest) I'm using Version 25

app/Open Module settings

https://i.sstatic.net/1z1O5.jpg

Upvotes: 3

Related Questions