frostwire/frostwire-jlibtorrent

How to merge libraries into one?

master255 opened this issue · 2 comments

@gubatron Alyarma alyarma! The enemies are attacking!

After upgrading Android Studio to Chipmunk, it stopped supporting different architecture libraries.
Now only single libraries are supported, which are not divided into architectures.

Almighty Gubatron, could you please write a script on how to merge all the libraries?
Perhaps Alden (@aldenml ), any ideas?

image

Opened both the jlibtorrent project, and the frostwire project and I have no issues on our project.

Screen Shot 2022-09-17 at 3 45 33 PM

Still works fine for jlibtorrent gradle project
Screen Shot 2022-09-17 at 3 40 48 PM

and for frostwire-android project
Screen Shot 2022-09-17 at 3 44 36 PM

How are you storing the different architecture jars in your android projects?
We simply throw all of them together inside libs/
Screen Shot 2022-09-17 at 3 47 32 PM

jlibtorrent classes are added to the classpath by Android Studio from a single jlibtorrent-w.x.y.z.jar that contains no binaries, only the .class files

Indeed. Moving the libraries to the libs directory helped.