Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'com.android.application'
- android {
- compileSdkVersion 27
- defaultConfig {
- applicationId "com.example.user.testjavacv"
- minSdkVersion 15
- targetSdkVersion 27
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- externalNativeBuild {
- cmake {
- cppFlags ""
- }
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- packagingOptions {
- exclude 'META-INF/services/javax.annotation.processing.Processor'
- pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.properties'
- pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/opencv/pom.xml'
- pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.properties'
- pickFirst 'META-INF/maven/org.bytedeco.javacpp-presets/ffmpeg/pom.xml'
- }
- externalNativeBuild {
- cmake {
- path "CMakeLists.txt"
- }
- }
- splits {
- abi {
- enable true
- reset()
- include 'x86','x86_64','armeabi-v7a','arm64-v8a'
- universalApk false
- }
- }
- sourceSets {
- main {
- jni.srcDirs = ['src/main/jniLibs']
- }
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:appcompat-v7:27.1.1'
- implementation 'com.android.support.constraint:constraint-layout:1.1.0'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:1.0.2'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
- implementation group: 'org.bytedeco', name: 'javacv', version: '1.4'
- implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.0-1.4.1', classifier: 'android-arm'
- implementation group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.4.0-1.4.1', classifier: 'android-x86'
- implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.4.1-1.4.1', classifier: 'android-arm'
- implementation group: 'org.bytedeco.javacpp-presets', name: 'ffmpeg', version: '3.4.1-1.4.1', classifier: 'android-x86'
- }
Advertisement
Add Comment
Please, Sign In to add comment