Build Sample App

Lets try to build an app from source code.

Source Code

I'd like to use something which is already out there very popular. The Sunshine-app is used by many for tutorials, so lets take that as our candidate.

https://github.com/udacity/Sunshine-Version-2

Environment

Assuming that you have the environment as mentioned in the sections "Android System setup", "Tools to know", below is my environment.

Note: As mentioned on the above git repo, sign up for the weather app key.

Once you have the key, place it inside "~/.gradle/gradle.properties" file. If the file doesn't exist, create it

Clone and Build

cd into the repo and then "gradle clean assembleDebug"

Video

https://vimeo.com/154936765

Eventually, a successful build looks as below.

app-debug apk

The app-debug.apk is found in app/build/outputs/apk as below

At this point, you can install the debug apk by following the section "Deploy or install Android app"

Note This source code is used only for demonstrating the build process. Please use your own email-id to create the API key, only with the API key , you will be able to launch the weather app.

results matching ""

    No results matching ""