• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Removing lib directory from APK

Basic question. I'm beginner in Android programming.

I'm further developing old Android Java code.

There's lib directory inside APK, where's large native libraries:
libc++_shared.so
libruntimecore.so
libruntimecore_java.so

I've understood, however, that those libraries are not needed anymore (C++ code which used them has been removed). I cannot find, however, what I should change so that they wouldn't be added to APK.
I'm using Android Studio 2020.3.1 and Gradle 7.0.2
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones