yausername / youtubedl-android

youtube-dl for android
GNU General Public License v3.0
934 stars 172 forks source link

Failed to resolve: com.github.yausername.youtubedl-android:ffmpeg:-SNAPSHOT #240

Closed HasanAnorov closed 1 year ago

HasanAnorov commented 1 year ago

I am using these dependencies as stated on installation of library //YT downloader library implementation 'com.github.yausername.youtubedl-android:library:-SNAPSHOT' implementation 'com.github.yausername.youtubedl-android:ffmpeg:-SNAPSHOT' // Optional implementation 'com.github.yausername.youtubedl-android:aria2c:-SNAPSHOT' // Optional

but getting these errors: Failed to resolve: com.github.yausername.youtubedl-android:ffmpeg:-SNAPSHOT

cjy2103 commented 1 year ago

change it like this

implementation 'com.github.yausername.youtubedl-android:library:42c7dfcee1' implementation 'com.github.yausername.youtubedl-android:ffmpeg:42c7dfcee1'

HasanAnorov commented 1 year ago

Yess it is working but why this is not mentioned in the library docs, and above library contains the same methods with different parameters, should I update my whole old codebase

cjy2103 commented 1 year ago

Well... First of all, this is a temporary measure by the developers.

This is not officially recommended.

That's why the docs don't seem to mention that method.

To give you one more piece of information, when it is built in this way and then changed again as shown in the official document below

implementation 'com.github.yausername.youtubedl-android:library:0.14.+'
implementation 'com.github.yausername.youtubedl-android:ffmpeg:0.14.+' // optional
implementation 'com.github.yausername.youtubedl-android:aria2c:0.14.+' // optional

or

implementation 'com.github.yausername.youtubedl-android:library:-SNAPSHOT'
implementation 'com.github.yausername.youtubedl-android:ffmpeg:-SNAPSHOT' // optional
implementation 'com.github.yausername.youtubedl-android:aria2c:-SNAPSHOT' // optional

Sometimes it builds normally.

HasanAnorov commented 1 year ago

ok understood, thanks

cjy2103 commented 1 year ago

More information

In some cases, changing the JDK vendor may cause it to build normally.

NewMacPro commented 1 year ago

where I can see the latest version ,just like "42c7dfcee1"? thanks

cjy2103 commented 1 year ago

This was mentioned by "xibr" in issue #180.

BobbyESP commented 1 year ago

In summary, Jitpack sucks but it's the only platform for uploading GitHub libraries without paying.

Shahboz79 commented 1 year ago

Did you solve this issue ?

JunkFood02 commented 1 year ago

use e6e89c8395 instead