Open clonedSemicolon opened 2 years ago
This library is broken on Android 11. Google changed storage APIs, so unfortunately the way this app goes to implement YoutubeDL-support via a shell solution NO LONGER WORKS.
Look for another project to start off, the dream of using YoutubeDL on android just died. As all private open source projects... due to a lack of maintenance.
EDIT: My point still stands, but I'll excuse myself for the rant. This app is still in active development, so I probably shouldn't blame its devs for not caring about the project anymore.
@clonedSemicolon sorry for the late response but were you testing on an x86 based emulator by any chance?
And what was the targetSdkVersion
?
I'm only able to speak for my own app, but I got the same error using those specs:
I had all three variables set to API-Level 31
I already changed some stuff on my Composition Compass app to make it (at least) work with 29 and didn't push the problematic state, otherwise I would have linked you the commit.
I should probably mention it works without issues inside the emulator as long as I keep the API level (all three variables) at 29, and use the old permission-requests in my manifest and in my onCreate().
Thanks for the information. This might get fixed by changing the code which unzips the file (maybe copying the file to a temp location before unzipping) https://github.com/yausername/youtubedl-android/blob/a41cfdfc6952e8af13c424556292ea017f4a0706/library/src/main/java/com/yausername/youtubedl_android/YoutubeDL.java#L100 Unfortunately I don't have time to fix or test these right now.
As a hotfix you can add flag
android.bundle.enableUncompressedNativeLibs=false
in gradle.properties.
As a hotfix you can add flag
android.bundle.enableUncompressedNativeLibs=false
in gradle.properties.
Thank you. This fixed the issue and lead to another message saying it's deprecated now. You can add this to build.gradle
instead:
android { packagingOptions { jniLibs { useLegacyPackaging = true } } }
As a hotfix you can add flag
android.bundle.enableUncompressedNativeLibs=false
in gradle.properties.Thank you. This fixed the issue and lead to another message saying it's deprecated now. You can add this to
build.gradle
instead:
android { packagingOptions { jniLibs { useLegacyPackaging = true } } }
šššššššššššššššš
While initializing the youtubedl the following error is generated:
Tried the solutions below: