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.
1. Clone the repository:
git clone https://github.com/zeyangli/helloworld-android-gradle.git2. Build the project:
cd helloworld-android-gradle
./gradlew buildThe 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-date3. 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.
DevOps Cloud Academy
Exploring industry DevOps practices and technical expertise.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.