How to Clone, Build, and Distribute the HelloWorld Android Gradle Project

This guide shows how to clone the HelloWorld Android Gradle repository, build the APK with Gradle, locate the debug and release packages, and upload them to the Fir distribution platform, including all required commands and build output details.

DevOps Cloud Academy
DevOps Cloud Academy
DevOps Cloud Academy
How to Clone, Build, and Distribute the HelloWorld Android Gradle Project

1. Clone the repository

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

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

2. Build the package

Working directory:

helloworld-android-gradle
cd helloworld-android-gradle
./gradlew build

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
Unknown file extension: app/src/main/res/mipmap-xhdpi/ic_launcher.png
Unknown file extension: app/src/main/res/mipmap-mdpi/ic_launcher.png
Unknown file extension: app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Unknown file extension: app/src/main/res/mipmap-hdpi/ic_launcher.png
Unknown file extension: app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

> Task :app:lint
Ran lint on variant release: 4 issues found
Ran lint on variant debug: 4 issues found
Wrote HTML report to file:///root/helloworld-android-gradle/app/build/reports/lint-results.html
Wrote XML report to file:///root/helloworld-android-gradle/app/build/reports/lint-results.xml

BUILD SUCCESSFUL in 1m 49s
58 actionable tasks: 50 executed, 8 up-to-date

3. Upload the APK to Fir

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

helloworld-android-gradle/app/build/outputs/apk/release
Upload screenshot
Upload screenshot

4. Download and test the APK

Test screenshot
Test screenshot
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Mobile DevelopmentAndroidGradleTutorialbuild
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

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.