VERY basic android project template.
The idea behind this template is to:
- Strip out unnecessary files.
- Get rid of unnecessary settings.
- Simplify directory structure.
- Simplify build process.
-
Android SDK: android-sdk
You can download either Android Studio or stand-alone command line tools (at the bottom of the page)
-
Java 17: java-download
To build the project you need to have valid SDK licenses on your system. They can be created using the sdkmanager
from
the downloaded android command line tools.
Creating valid licenses using sdkmanager
:
- Download and extract
commandline-tools.zip
- Navigate to
./commandline-tools/bin
directory. - Run the following command:
Linux:
./sdkmanager --sdk_root=/home/example/AndroidSDK --licenses
Windows:
.\sdkmanager.bat --sdk_root=C:/Users/Example/AndroidSDK --licenses
When building from command line; you need to create a local.properties
file in the project root and set up correct sdk.dir.
- Example
local.properties
file content:
sdk.dir=C:/Users/Example/AndroidSDK
-
Android Studio:
click the compile button :)
-
Linux command line:
./gradlew buildDebug
- Windows command line:
.\gradlew.bat buildDebug
Quick license generate script (hack)
If you don't want to bother with downloading either android studio or command line tools; you can use the quick license generation script.
Simply run the following command with the path to SDK root:
Windows:
.\extras\create_license.bat C:/Users/Example/AndroidSDK
Linux:
./extras/create_license.sh home/example/AndroidSDK