Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

Module Name not coming while adding opencv in Android Sudio 4.1.0 and opencv version 4.1.0

I am a beginner at android app development or you can say this is my first android App. I want to import opencv in my android app, but while importing it's not showing in my app. Below is the screenshot for it.

I know, I have seen many tutorials but I don't know why I am not able to get it for me.

This is how it should come. Module Import Page

This is what I am getting.

My Module import page

In project structure also, I am not getting as expected.

In project structure


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...