Open ldev1211 opened 2 years ago
I don't know if u already solved this problem but i had similar problem. For me worked reading what's inside ytFiles array and then I noticed that there's no element with itag = 22 (there was 18, 133, 134, 135) which probably might vary between different videos from youtube.
In the first install application in my physic device. I really can download video from youtube to my device's storage. But the next time, my application crashed immediately. Then Android Studio IDE announce to me error in line init String downloadURL like title of this question. This is my code: