我已经录制了一个使用移动相机的视频,但是现在我想使用一个库来修剪这个视频,在添加了下面的剪裁功能之后。
implementation 'com.github.a914-gowtham:android-video-trimmer:1.7.0'我得到了这个错误:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.

下面是我的应用程序级build.gradle代码:
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.techease.videome"
minSdk 21
targetSdk 32
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'
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
//trimmer
implementation 'com.github.a914-gowtham:android-video-trimmer:1.7.0'
}下面是项目级别的build.gradle:
// Top-level build file where you can add configuration options common to all sub-
projects/modules.
buildscript {
repositories {
maven { url 'https://jitpack.io' }
}
}
plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.7.0' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}有人知道我在这里错过了什么吗?
发布于 2022-07-31 14:07:43
在android演播室中,从"File“菜单调用”无效缓存“。在加载android之后,再次构建该项目。每件事都是正确的。
https://stackoverflow.com/questions/72742912
复制相似问题