当我尝试导入库openCV 3.4.3时遇到问题。 错误是:
错误:无法在以下位置找到带有哈希字符串“ android-14”的目标: C:\ Users \ MiGuEl \ AppData \ Local \ Android \ sdk安装缺少的平台并进行同步 项目
这是我的礼物:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.1"
defaultConfig {
applicationId "midlab.prototipothyssentriaje"
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
}
是否可以在不更新sdk的情况下导入模块openCV? 谢谢