bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.56k stars 1.58k forks source link

The Android Gradle plugin supports only Kotlin Gradle plugin version 1.2.51 and higher. Project 'this using version 1.2.20. #1160

Closed abdullahNagori closed 5 years ago

abdullahNagori commented 5 years ago

I am totally stuck here is my buid.gradle code tried all ways but can't get it, please help

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.blackbox.ffmpeg.examples"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

buildscript {
    ext.kotlin_version = '1.3.21'
    repositories {
        google()
        jcenter()
    }
}
    dependencies {
        implementation fileTree(include: ['*.jar'], dir: 'libs')
        testImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })

        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:gridlayout-v7:28.0.0'

        testImplementation 'junit:junit:4.12'
        //FFmpeg Library
        implementation 'com.writingminds:FFmpegAndroid:0.3.2'
        implementation 'org.jcodec:jcodec-android:0.1.9'
        //GIF Viewer
        implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

    }
    repositories {
        mavenCentral()
    }
saudet commented 5 years ago

I'm sorry, that's unrelated to JavaCV.