你好,当我尝试在Android模拟器上运行我的应用程序时,我遇到了以下错误:
我正在为我的项目使用video_compress 3.1.2依赖项,
它在iOS模拟器上工作正常,但gradle会出现这个错误,我无法解决它
我在Maven存储库中找到了这个链接,但我找不到如何使用它
https://mvnrepository.com/artifact/com.otaliastudios/transcoder/0.9.1
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeDebugAssets'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.otaliastudios:transcoder:0.9.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.pom
- https://repo.maven.apache.org/maven2/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.pom
- https://storage.googleapis.com/download.flutter.io/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.pom
Required by:
project :app > project :video_compress
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUİLD FAILED in 20s
Exception: Gradle task assembleDebug failed with exit code 1
Exited
---Gradle kotlin---- // https://mvnrepository.com/artifact/com.otaliastudios/transcoder implementation("com.otaliastudios:transcoder:0.9.1")
我将这个依赖项放在了build.gradle文件的android->app下,但是无法运行。
像这样--
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation platform('com.google.firebase:firebase-bom:31.0.2')
implementation("com.otaliastudios:transcoder:0.9.1") //------------------------>new added
}