A Starter Android Project using Gradle
To develop Android applications, you need to install Android SDK.
This starter project name is Starter. Its domain is com.example.starter. Please rename it to fit your own project name and domain.
- 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.
- Make sure the package name in MainActivity.java file at first line matchs your domain.
- You may also need to check app/src/androidTest/java to matchs your domain.
- You may also need to check ApplicationTest.java file at first line matchs your domain.
- See AndroidManifest.xml in manifest tag. Check its 'package' attribute.
- See app/build.gradle and check 'applicationId'
- Rename location.properties.example to location.properties. Set sdk.dir to your Android SDK path.
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.