# Opencv 4.8.0 cannot resolve symbol opencv engine interface

**URL:** <https://forum.opencv.org/t/opencv-4-8-0-cannot-resolve-symbol-opencv-engine-interface/14307>\
**Category:** Android/Java\
**Tags:** build\
**Created:** [August 21, 2023, 10:19am UTC](https://forum.opencv.org/t/opencv-4-8-0-cannot-resolve-symbol-opencv-engine-interface/14307 "2023-08-21T10:19:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dan\_Steinfeld-Cohen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/dan_steinfeld-cohen/32/8567_2.png) [@Dan\_Steinfeld-Cohen](https://forum.opencv.org/u/Dan_Steinfeld-Cohen)\
**Post date:** [August 21, 2023, 10:29am UTC](https://forum.opencv.org/t/opencv-4-8-0-cannot-resolve-symbol-opencv-engine-interface/14307/2 "2023-08-21T10:29:40Z")

</div>

I have found the solution!  
so because I changed to android gradle 8.0 it didn’t work, since buildFeatures buildConfig and aidl (OpenCVEngineInterface) have been changed to false by default!  
so the solution is to add for the OpenCV Model this

```auto
    buildFeatures {
        aidl = true
        buildConfig = true
    }

```

.  
I really hope this will save people time, cheers!

EDIT:  
here is the link

> **[Android Gradle Plugin 8.0.0 (April 2023)  |  Android Developers](https://developer.android.com/build/releases/past-releases/agp-8-0-0-release-notes#default-changes)**
>
> Release notes of Android Gradle Plugin 8.0.0

---

_[View the full topic](https://forum.opencv.org/t/opencv-4-8-0-cannot-resolve-symbol-opencv-engine-interface/14307)._
