The . apk file you have is a compiled version of the code. Android studio can decompile this for you when you import it to view the content, but you cannot edit the decompiled code directly.
Can APK be opened in Android Studio?
Android Studio 3.0 and higher allow you to profile and debug APKs without having to build them from an Android Studio project. … Or, if you already have a project open, click File > Profile or Debug APK from the menu bar. In the next dialog window, select the APK you want to import into Android Studio and click OK.
How can I create APK file in Android Studio?
In the menu bar, click Build > Generate Signed Bundle/APK. In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next. Below the field for Key store path, click Create new. On the New Key Store window, provide the following information for your keystore and key, as shown in figure 2.