Why does an APK include its used Android framework APIs?
I create a new empty project with Android Studio(Dolphin), enable Proguard, and build an APK. By analyzing the APK with Android Studio and jadx, I notice that APIs from the package android.
appear in the APK. They don't have their implementation, and their constructor throws NoClassDefFoundError
.
I thought that all framework APIs are provided by the system so that an app doesn't need to include them.
My question is:
- What's their usage?
- Can we remove them?
A chatbot mentioned minSdkVersion, but I can't find any concrete sources.