Issue in Adding Module dependency for OpenCv

It's Solved by editing build.gradle of Opencv as below :

apply plugin: 'com.android.library'

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        //applicationId "org.opencv"
    }

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

Changed apply plugin: 'com.android.library' from apply plugin: 'com.android.application'

and

Commented below line :

applicationId "org.opencv"