Checkout the build.gradle
for OpenCVLibraryxxx. Since you are using it as a library, sometimes it defined as application.
//apply plugin: 'com.android.application'
apply plugin: 'com.android.library'
And also delete applicationId "org.opencv"
from defaultConfig
part.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…