a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
362 stars 115 forks source link

Failed to resolve: com.github.a914-gowtham:android-video-trimmer:1.7.0 #65

Closed dioob closed 2 years ago

dioob commented 2 years ago

Yes, my gradle failed to resolve this.

  1. I already put "maven {url 'https://jitpack.io'}" in my repo (even on the top)
  2. I already did invalidate caches/restart, but still got an error
  3. I already did clean project but still
a914-gowtham commented 2 years ago

@dioob are you using Gradle version 8.0?!

dioob commented 2 years ago

@dioob are you using Gradle version 8.0?!

idk, what about it?

dioob commented 2 years ago

i checked in my build gradle dependencies my classpath "com.android.tools.build:gradle:7.0.2"

a914-gowtham commented 2 years ago

sample project is also using com.android.tools.build:gradle:7.0.2 . can you share the app level and project level build.gradle files?

dioob commented 2 years ago

how to check it?

dioob commented 2 years ago

oh yeah more, i only have buildscript block with google() and mavenCentral() in my build.gradle, i don't have "allprojects" or "allscripts"

a914-gowtham commented 2 years ago

can you check this build.gradle file and try again after adding missed code

dioob commented 2 years ago

it seems i fixed it from people in discord.. i need to put "maven {url 'https://www.jitpack.io'}" INSIDE repositories in settings.gradle, NOT inside build.gradle. here is how it look:

dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() maven {url 'https://www.jitpack.io'} jcenter() // Warning: this repository is going to shut down soon } }

dioob commented 2 years ago

but it has warning said:

[Processor] Library 'C:....aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.

but i can starting to write "TrimVideo" in my activity, is it safe?

a914-gowtham commented 2 years ago

yes, you are good to go.

dioob commented 2 years ago

alright, thank you

a914-gowtham commented 2 years ago

closing the issue. feel free to open an issue anytime