Home>
I want to achieve
I wanted to use OpenCV on Android Studio, so I imported it while referring to the article.
I was able to import the module, but after that I got an error. I would like to know how to deal with it
upperapp
There is a cross in the place, and if you look at Debug Configurations,
Warming: Default Activity not found
Will come out
AndroidManifest.xml
<? xml version = "1.0" encoding = "utf-8"?>
<manifest xmlns: android = "http://schemas.android.com/apk/res/android"
package = "com.websarva.wings.android.opencv_sample">
<intent-filter>
<category android: name = "android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
build.gradle
apply plugin:'com.android.application'
apply plugin:'kotlin-android'
apply plugin:'kotlin-android-extensions'
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "com.websarva.wings.android.opencv_sample"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ('proguard-android-optimize.txt'),'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree (dir: "libs", include: ["*. Jar"])
implementation "org.jetbrains.kotlin: kotlin-stdlib: $kotlin_version"
implementation'androidx.core: core-ktx: 1.3.1'
implementation'androidx.appcompat: appcompat: 1.2.0'
implementation'androidx.constraintlayout: constraintlayout: 2.0.1'
implementation project (path:': opencv')
testImplementation'junit: junit: 4.12'
androidTestImplementation'androidx.test.ext: junit: 1.1.2'
androidTestImplementation'androidx.test.espresso: espresso-core: 3.3.0'
}
Reference article
https://qiita.com/tifa2chan/items/a2ec4f5d90eeb9cf1802
environmentAndroid studio 4.0.1
Windows 10
-
Answer # 1
Related articles
- about error in android studio xml file
- android studio - about error resolution of flutter package cover
- android studio - null-related error, the application crashes and cannot be resolved
- i get an error in android studio and can't run
- java - i want to fix an error in android studio
- i get an error when building in android studio
- java - error in android studio
- java - error when building android studio ml kit for firebase [plugin with id'comandroidapplication' not found]
- module name is not displayed in android studio
- onclick - i am developing an application in android studio if you execute it, it will be forcibly terminated
- android studio - i want to write a program that switches images using viewpager2
- java - about type conversion of view in android studio
- how to assign a value to datepicker of view in android studio
- the text editor of android studio is not displayed
- android studio - flutter, dart: the value of the local variable'uint8list' isn't used is displayed even though the declared vari
- java - i want to open a site with a fixed url when i tap the icon of the android studio app
- android studio how to update within the widget's onreceive ()
- android studio - show message if one of the two edittexts is empty
- i got an unexpected error when i moved the files i had created to the latest version of android studio
It seems that the minSdkVersion of build.gradle is too low. Even in the referenced article, it is written that "By the way, 15 is too low and an error occurs." Can it be solved by setting it to 21 (Android 5.0 Lollipop) or higher?