I'm trying to use Android AudioConverter (https://github.com/adrielcafe/AndroidAudioConverter) to convert a .AAC file to a .WAV. The problem is, when I try to run my app, I get this error:
Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
> More than one file was found with OS independent path 'lib/armeabi-v7a/libARM_ARCH.so'
Here is my gradle file:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.example.a49164.teachmi"
minSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
maven {
url "https://jitpack.io"
}
flatDir {
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.volley:volley:1.0.0'
compile 'com.github.adrielcafe:AndroidAudioConverter:0.0.8'
compile(name:'FFmpegAndroid', ext:'aar')
}
If I remove this line:
compile(name:'FFmpegAndroid', ext:'aar')
Then the app does not work as Android AudioConverter needs ffmpeg to work. What should I do ? Thanks.
Well, in the end I'm not using ffpmeg and I use audiorecorder to record raw data and create a wav file from it.