How to Build an App/APK from GitHub using Android Studio
In this guide, we will show you the steps to build an app/APK from GitHub via Android Studio. For the sake of reference, we will be using the GMS Phixit app, whose files are present here in this repo . But the same shown here will be applicable to all the apps across any GitHub repo. Moreover, we will be using a Mac, but you can use the same steps on your Windows PC. So without any further ado, let’s get started.
How to Build an App/APK from GitHub using Android Studio

- To begin with, download and install Android Studio on your PC.
- Then launch it and proceed with the on-screen instructions to install it. Choose the Install type as Standard.
- Make sure to download all the packages listed there [around 2.32GB].
- Likewise, accept the license for all three- android-sdk-license, android-sdk-arm-dbt-license, and android-sdk-preview-license.
- Once done, hit Finish and launch Android Studio. Then go to File > New > Project From Version Control.
- Choose Version Control as Git, type in the repo URL in the space provided, and hit Clone. In our case, it will be: https://github.com/polodarb/GMS-Phixit
- If you trust the project, hit Trust Project.
- The cloning will now start and could take a few minutes. Once done, you’ll get the Download Complete message.
- If you now try to build and run the app, then Android Studio might throw an error message regarding the missing google-services.json. So let’s add this file to our app.
- For that, open the build.gradle.kts file app file [not the project file]. It will be inside app-name > app folder.
- Then hit Ctrl+F, search applicationID, and note down the value. In our case, it is ua.polodarb.gmsphixit.
- Now head over to the Firebase website and create a new project [if you don’t have any existing one].
- Then under Register app, type in the Android package name as the app package name which we got from the build.gradle.kts file [applicationID]. In our case, it is ua.polodarb.gmsphixit.
- In the app nickname, enter the app name, which in our case is GMSPhixit. Then hit Register App.
- Then click on Download google-services.json.You’ll get this file in the Downloads folder.
- Transfer it to app-name > app folder, as shown in the image.
- Now build the app and you’ll soon get the Build Successful message. If you want, you may run the app in the Studio’s console or get the file as an APK. Let’s do the latter one.
- So go to Build > Generate App Bundles or APK > Generate APKs. You’ll now get the APK file named app-debug.apk in the app-name > app > build > outputs > apk > debug folder.
- Transfer this APK to your device and install it right away.
- How to Install and Use Pixel Studio on any Android
- How to Add ChatGPT/Gemini in Android Keyboard
- How to Spoof your Device to the Google Pixel 10 Pro
- Guide to Enable Gemini Live on any Android Device
(Cancel Reply)
Δ