Mobile Development 3 min read

Building and Deploying the HelloWorld Android Gradle Project

This guide demonstrates how to clone the HelloWorld Android Gradle repository, build the project using Gradle, locate the generated debug and release APK files, upload them to Fir for distribution, and verify the installation, providing all necessary commands and output details.

DevOps Cloud Academy
DevOps Cloud Academy
DevOps Cloud Academy
Building and Deploying the HelloWorld Android Gradle Project

1. Clone the repository:

git clone https://github.com/zeyangli/helloworld-android-gradle.git

2. Build the project:

cd helloworld-android-gradle
./gradlew build

The build process downloads required dependencies and runs lint, producing a successful build report:

Download https://jcenter.bintray.com/com/loopj/android/android-async-http/1.4.9/android-async-http-1.4.9.jar
Download https://jcenter.bintray.com/cz/msebera/android/httpclient/4.3.6/httpclient-4.3.6.jar
Download https://jcenter.bintray.com/com/google/code/gson/gson/2.8.1/gson-2.8.1.jar
Download https://dl.google.com/dl/android/maven2/android/arch/lifecycle/common/1.0.0/common-1.0.0.jar
Download https://dl.google.com/dl/android/maven2/android/arch/core/common/1.0.0/common-1.0.0.jar
... (lint output omitted for brevity) ...
BUILD SUCCESSFUL in 1m 49s
58 actionable tasks: 50 executed, 8 up-to-date

3. Locate the generated APKs:

Debug APK: helloworld-android-gradle/app/build/outputs/apk/debug

Release APK: helloworld-android-gradle/app/build/outputs/apk/release

4. Upload the APKs to Fir (a distribution platform) and obtain download links for testing.

5. Download the uploaded package on a device to verify that the application runs correctly.

Images in the original article illustrate the upload QR code and the testing result.

mobile developmentCI/CDAndroidAPKGradlebuild
DevOps Cloud Academy
Written by

DevOps Cloud Academy

Exploring industry DevOps practices and technical expertise.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.