Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.22 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.22 KB

Android Starter

A Starter Android Project using Gradle

Prerequisites

To develop Android applications, you need to install Android SDK.

How to Create Android Apps

This starter project name is Starter. Its domain is com.example.starter. Please rename it to fit your own project name and domain.

  1. Make sure you have correct structure below app/src/main/java/ based on your domain. For example, your domain is com.example.starter, then your should have app/src/main/java/com/example/starter/MainActivity.java.
  2. Make sure the package name in MainActivity.java file at first line matchs your domain.
  3. You may also need to check app/src/androidTest/java to matchs your domain.
  4. You may also need to check ApplicationTest.java file at first line matchs your domain.
  5. See AndroidManifest.xml in manifest tag. Check its 'package' attribute.
  6. See app/build.gradle and check 'applicationId'
  7. Rename location.properties.example to location.properties. Set sdk.dir to your Android SDK path.

How to Build

Simply run ./gradlew assembleDebug. At first time, it will download gradle and some dependencies. Please wait for minutes. Downloading is only done once.

Run ./gradlew tasks to list available tasks.