Is there any guidance on the simple step to include OpenCV library (presumably from Maven)?
The official tutorial is for an older version of the IDE. I understand the challenges in keeping the doc current at all times. My ignorance with Kotlin, Gradle, etc. is on full display too. I hope that somebody can help me, please.
In trying to emulate the instruction in the tutorial to specify the OpenCV dependency, I noticed that the equivalent statement in the build.gradle.kts (Module :app) has a slightly different syntax.
The tutorial suggests the following statement:
implementation 'org.opencv:opencv-android:4.10.0'
but the build.gradle.kts file uses a different syntax for the implementation
keyword as follows:
implementation(libs.androidx.ui.tooling.preview)
Naturally, the statement from the tutorial displays the following error messages:
Unexpected tokens (use ';' to separate expressions on the same line)
Unresolved reference. None of the following candidates is applicable ...
While previous versions of the Android Studio worked in their own variations to including the OpenCV SDK (either explicitly in pre-4.7.0 or through Maven in 4.9.0), I would like to targetSDK to 35 and therefore need help with the Kotlinized build.grade file to include the OpenCV dependency. Thanks.
Regards.