jonataslaw / VideoCompress

Compress videos, remove audio, manipulate thumbnails, and make your video compatible with all platforms through this lightweight and efficient library.
MIT License
231 stars 280 forks source link

com.otaliastudios:transcoder:0.9.1 is not supported #209

Open dustinest opened 1 year ago

dustinest commented 1 year ago

Sorry for crating new issue, but looks like have the same issue, which is caused by transcoder version availability in maven repository.

Based on maven repository, it looks like 0.10.0 is the smallest version available https://mvnrepository.com/artifact/com.otaliastudios/transcoder

This causes android compile time errors:

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
Theselman commented 1 year ago

Sorry for crating new issue, but looks like have the same issue, which is caused by transcoder version availability in maven repository.

Based on maven repository, it looks like 0.10.0 is the smallest version available https://mvnrepository.com/artifact/com.otaliastudios/transcoder

This causes android compile time errors:

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

Hi dustinest. I was getting the same error on android. [https://stackoverflow.com/questions/74576677/flutter-gradle-build-failed-with-an-exception-could-not-find-com-otaliastudio] please see solution here adding jcenter() to build.gradle fixed the issue for me.

waqas6692 commented 1 year ago

add this line in build.gradle of project level under buildscript and repositories jcenter()

it worked in my case. Found my solution here

fisherjoe commented 1 year ago

The same issue for me.

abdul-salam111 commented 1 year ago

Sorry for crating new issue, but looks like have the same issue, which is caused by transcoder version availability in maven repository.

Based on maven repository, it looks like 0.10.0 is the smallest version available https://mvnrepository.com/artifact/com.otaliastudios/transcoder

This causes android compile time errors:

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

allprojects { repositories { google() mavenCentral() jcenter() } } This worked for me, I hope It will help you too.

jinzishuai commented 1 year ago

Hi guys, I have the same problem but the jcenter() solution mentioned above and many other posts didn't solve my problem.

Also, I am very new to flutter and I am not sure if we are even supposed to manually change the generated gradle file at all?

Williamtobs commented 1 year ago

Sorry for crating new issue, but looks like have the same issue, which is caused by transcoder version availability in maven repository. Based on maven repository, it looks like 0.10.0 is the smallest version available https://mvnrepository.com/artifact/com.otaliastudios/transcoder This causes android compile time errors:

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

allprojects { repositories { google() mavenCentral() jcenter() } } This worked for me, I hope It will help you too.

following this step works for me, thanks

nullskill commented 1 year ago

This workaround doesn't work anymore. The transcoder cannot be found on jcenter.

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1).
        Searched in the following locations:
            https://jcenter.bintray.com/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.aar
InspectlyMads commented 1 year ago

This workaround doesn't work anymore. The transcoder cannot be found on jcenter.

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1).
        Searched in the following locations:
            https://jcenter.bintray.com/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.aar

Having same issue. jcenter is added to build.gradle

nullskill commented 1 year ago

This workaround doesn't work anymore. The transcoder cannot be found on jcenter.

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not find transcoder-0.9.1.aar (com.otaliastudios:transcoder:0.9.1).
        Searched in the following locations:
            https://jcenter.bintray.com/com/otaliastudios/transcoder/0.9.1/transcoder-0.9.1.aar

Having same issue. jcenter is added to build.gradle

Just use video_compress_plus package instead. Works for me.