anilbeesetti / nextplayer

An Android native video player
GNU General Public License v3.0
1.26k stars 58 forks source link

How do you make a release build in android-studio? #932

Closed markg85 closed 1 month ago

markg85 commented 2 months ago

Hi,

I'm curious to know the steps to build a release using android studio? Or just the command line steps you follow to build a release.

When i try a release build it begins to complain about library desugaring (whatever that might be).

anilbeesetti commented 2 months ago

Hi @markg85, You can just build from android studio wizard. Currently that's how I'm uploading to google play store.

markg85 commented 2 months ago

Ahh, figured out what caused my "library desugaring" issues. I had "nextlib" cloned in my nextplayer folder and uncommented the config to let the project use that. If you do that debug works, release fails.

While it's not an issue for me anymore, could you look into this? I'd guess that building a release locally (nextlib included) should be possible, no?

Just not using a local nextlib clone made it work for me. I didn't actually need nextlib so it works for me. I do have changes in media3 which i do want to use locally. That works but also fails in a release build though for an whole different reason.

anilbeesetti commented 1 month ago

Hey @markg85, I can build release locally (nextlib included) image

markg85 commented 1 month ago

It took me a while but i got it working! Turns out my folder structure was a bit messy. A clean checkout and actually following to the letter what you said in the code comment is enough to make it work. I had my nextlib inside my nextplayer, not with the same parent.

Closing. Thank you for your help and this great project!