Is the library file in the .apk file?

Actually, I want to know that if any library file (for example, a jar file) is present in my folder with application folders, then after installing (launching) this application, will the library file be present in the .apk file? In my opinion, the FILE library should be present in the generated .apk file. If I am wrong, then please correct me.

If my question is below the standard, then this is a pity. Any help would be well appreciated

+5
source share
3 answers

In recent versions of Android tools, .jar files in the libs folder are automatically included in the assembly. (See Working with dependencies in Android projects .) So, yes, the library is included in the compiled bytecode (and not as a separate file).

If you use ProGuard in the release build, it will try to cross out any code that is not actually used. Thus, it may be that some parts of the library are included in the final .apk, and some parts are removed.

+6
source

The answer is yes. Apk is just a compressed version of your compiled project. If you open it with winrar, for example, you will see that it has an infinite amount;)

0
source

, .jar libs apk. .dex. dex, java-.

0

All Articles