I want to create a Speaker Recognition Android app using android studio.
I came accross https://github.com/amaurycrickx/recognito Library in java. But I am having difficulty in implementing it in Android.
First, I saved the recognito folder by copying it in libs folder (creating it manually) in my main directory of my android app.
Then, in settings.gradle file -- include ':recognito'
build.gradle app file -- compile project(':recognito')
After sync. getting the error -
Error:Project :app declares a dependency from configuration 'compile' to configuration 'default' which is not declared in the descriptor for project :recognito.
I researched, Gradle error: configuration declares dependency which is not declared It says that since build.gradle file doesn`t exists for the Recognito project. But how will it? Cos it contains only java files.
Please help ..
Build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "com.urvi.android.abc"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile project(':recognito')
}
settings.gradle
include ':app'
include ':recognito'
and the folder Recognito I copied has https://github.com/amaurycrickx/recognito/tree/master/recognito files. I did not copy from the initial path