FFMPEG Android ОшибкиAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 FFMPEG Android Ошибки

Сообщение Anonymous »

ОК, так что я делаю приложение Kotlin Android и для преобразования файлов с 3GP в WAV I добавил библиотеку Android FFMPEG с реализацией 'com.arthenica: mobile-ffmpeg-full: 4.4' Затем я добавил этот код к коду. Конвертировать файлы ffmpeg.execute ("-i" + f2 + "/storage/emulate/0/android/data/com.icompilecodewithnowarnings.ffmpegthing/files/documents/recording.wav") для дальнейшего контекста f2 /storage/emultion/0/android/data/com.icompilecodewithnowarnings.ffmpegthing/files/documents/recording.3gpобразно Но вот некоторые из них < /p>
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.3.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2 ... -0.3.2.pom
- https://repo.maven.apache.org/maven2/co ... -0.3.2.pom
Required by:
project :app
< /code>
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.github.hiteshsondhi88.libffmpeg:FFmpegAndroid:0.3.2.
< /code>
I tried to compile however the compiler immediatley rejected my app and refused to compile. I would have expected it to have immidiatley compiled into a apk.
EDIT:
Here is my build.gradle file
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
namespace 'com.icompilecodewithnowarnings.ffmpegthing'
compileSdk 33

defaultConfig {
applicationId "com.icompilecodewithnowarnings.ffmpegthing"
minSdk 26
targetSdk 33
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'com.arthenica:mobile-ffmpeg-full:4.4'
implementation files('src/main/java/musicg-1.4.2.0.jar')
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}


Подробнее здесь: https://stackoverflow.com/questions/768 ... oid-errors
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»