Coder Social home page Coder Social logo

android-hello-world's Introduction

Hello, World!

A simple Android application. The goal is to test out a nice development environment setup.

  • ✅ Use any editor to develop, not just Android Studio
  • ✅ From freshly cloned repo to running app in a single command
  • No generated files checked into git (e.g. .xcodeproj)

Prerequisites

This setup depends on the Android SDK, Android Platform Tools, Java, Kotlin and Gradle being installed. They can be installed using Homebrew with the following commands:

brew cask install homebrew/cask-versions/java8
brew cask install android-platform-tools
brew cask install android-sdk
brew install kotlin
brew install gradle

# Add ANDROID_HOME / ANDROID_SDK_ROOT to your profile
vim ~/.profile
source ~/.profile

# Accept Android licenses
/usr/local/share/android-sdk/tools/bin/sdkmanager --licenses

Emulator

In order to run the app in the emulator some additional steps are required:

Emulator Prerequisites

# Install emulator
/usr/local/share/android-sdk/tools/bin/sdkmanager emulator

# Install system image
/usr/local/share/android-sdk/tools/bin/sdkmanager 'system-images;android-19;google_apis;x86'

# Create emulator
/usr/local/share/android-sdk/tools/bin/avdmanager create avd -n MyEmulator -k 'system-images;android-19;google_apis;x86'

Starting emulator

/usr/local/share/android-sdk/emulator/emulator @MyEmulator

Building / Running

To fetch dependencies, build dependencies, build the app and then finally install the app on the first plugged in device (or emulator), run the installDebug task.

gradle installDebug

If you want to build without installing and installing the app, use the assembleDebug task.

gradle assembleDebug

android-hello-world's People

Contributors

linusu avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.