Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APK file is generating without "src" code

Tags:

android

When I try to generate an apk file from android studio "src" code in there in apk file. I opened apk using "winrar" but, there is no src folder in it.

What is happening?

like image 661
Maharsh Avatar asked Jul 14 '26 11:07

Maharsh


2 Answers

Your source code is converted into dex file. You will file .dex file in the extracted folder.

When you build APK in the android studio. It converts your source code into java ByteCode(.class file) and then again process all class file into single/multiple Dex file(.dex) based on method count.

Check this image for more information: enter image description here

Image Reference link.

like image 119
Dhaval Patel Avatar answered Jul 16 '26 01:07

Dhaval Patel


The src folder is your source code.

No Java or Android application actually runs your source code, rather all Java files are compiled to class files and relocated to the classpath of a JAR, or APK or AAR for Android. Typically there are folders for each package, then class files under that

like image 34
OneCricketeer Avatar answered Jul 15 '26 23:07

OneCricketeer