Can't integrate OpenCv with android studio

hello, while integrating OpenCv with android studio, I was encountring this error:

Incorrect package=“org.opencv.android” found in source AndroidManifest.xml: D:\imp\chljaaaaa\OpenCv\java\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package=“org.opencv.android” from the source AndroidManifest.xml: D:\imp\chljaaaaa\OpenCv\java\AndroidManifest.xml.

i cant find the solution!

Have you got last opencv (github version)?

yes it is the latest version… opencv - 4.7.0

so may be it can help you

nope. it didn’t help me… in fact it worsen the situation! or it maybe I’m not understanding the structure of opencv!

What is your version of gradle ?

gradle version : 8.0

If you need only sdk you can do
copy CMakeFiles/install/opencv_android/opencv/build.gradle in opencv_android/opencv and run cmake --build . and run cmake --install . and now you’ve got sdk