首页 > 代码库 > Android - "cause failed to find target android-14" 问题

Android - "cause failed to find target android-14" 问题

"cause failed to find target android-14" 问题


本文地址: http://blog.csdn.net/caroline_wendy


Android Studio 在加载OpenCV库时, 会出现报错: "cause failed to find target android-14"


修改app文件夹中的build.gradle文件即可. 把SdkVersion改为使用的SDK, 如19.

apply plugin: ‘android-library‘

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    defaultConfig {
        minSdkVersion 8
        targetSdkVersion 19
    }

    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.txt‘
        }
    }
}


Android - "cause failed to find target android-14" 问题