2017-12-20 3 views
0

android studio에서 opencv를 통합하는 중에 오류가 발생했습니다. 내가 OpenCV의 모듈, Gradle을 빌드를 가져올 수 있지만, 모듈 종속성을 추가하는 동안이 제공 될 때 3.1.0,3.3.0,3.2.0opencv 통합 중에 오류가 발생했습니다.

을 다음 내 SDK 버전은 이미 시도 26

OpenCV의 버전입니다 오류.

my error

OpenCV의 Gradle을 :

apply plugin: 'com.android.library' 

    android { 
    compileSdkVersion 26 
    buildToolsVersion "26.0.2" 

    defaultConfig { 
    minSdkVersion 19 
    targetSdkVersion 26 
    } 

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

모듈 응용 프로그램 :

apply plugin: 'com.android.application' 

    android { 
    compileSdkVersion 26 
    buildToolsVersion "26.0.2" 

    defaultConfig { 
    applicationId "com.example.kathirpandian.finalopencv" 
    minSdkVersion 19 
    targetSdkVersion 26 
    versionCode 1 
    versionName "1.0" 
    testInstrumentationRunner 
    "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 
     'proguard-rules.pro' 
     } 
     } 
    } 

    dependencies { 
    implementation fileTree(include: ['*.jar'], dir: 'libs') 
    implementation 'com.android.support:appcompat-v7:26.1.0' 
    implementation 'com.android.support.constraint:constraint-layout:1.0.2' 
    testImplementation 'junit:junit:4.12' 
    androidTestImplementation 'com.android.support.test:runner:1.0.1' 
    androidTestImplementation 'com.android.support.test.espresso:espresso- 
    core:3.0.1' 
    compile project(':openCVLibrary310') 
    } 

내가 지난 이일에서 이것을 시도하고
사람이 PLS이

+0

'build.gradle' 파일의 관련 섹션을 게시하십시오. – Thomas

+0

내 gradle 파일을 첨부했습니다. –

답변

0

에서을 극복하는 데 도움이 너프로젝트 디렉토리의 루트에파일이 있으면 openCVLibrary310 모듈을 참조해야합니다. settings.gradle 파일은 다음과 같아야합니다.

include ':app', ':openCVLibrary310' 
관련 문제