Same error here. Trying to use openCV 4.10.0 (currently newest) as an importet module in my android App, using Kotlin v2.0.21. Im getting: "Execution failed for task ':opencv:compileDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction Internal compiler error. See log for more details". Blockquote
ChatGPTs analysis: "The error suggests that the issue is in the MatAt.kt file, specifically around a setV2c function. The problem may arise from:
Unsafe type coercion (e.g., UByte to Byte or vice versa). The use of generics in combination with Kotlin's type system."