Plugin with id ‘kotlin-android’ not found
在build.gradle(:app)中添加以下內(nèi)容
buildscript {
ext {
Kotlin_Verion = "1.9.10"
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$Kotlin_Verion"
}
repositories {
mavenCentral()
}
}
再在工程的build.gradel中添加如下內(nèi)容
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
版本根據(jù)實(shí)際情況修改.
如下圖
命名空間問(wèn)題
在opencv的build.gradle中添加工程的命名空間即可.
如下圖
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-687038.html
import org.opencv.BuildConfig
gradle.properties
android.defaults.buildfeatures.buildconfig=true
error: package org.opencv.engine does not exist
opencv build.gradle文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-687038.html
buildFeatures {
aidl true
}
到了這里,關(guān)于opencv android sdk 使用中的問(wèn)題的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!