Skip to content

czak/minimal-android-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

minimal-android-project

This repository explores how simple it can be to set up a valid, working Android project. You will need:

  • One .java activity source file, placed in its appropriate package directory
  • One AndroidManifest.xml
  • One build.gradle
    • Certainly this is optional, as you can build the project using command line tools from the Android SDK. But let's not complicate things unnecessarily.

For more in-depth information about this repository, see my blog post.

How to build

$ git clone https://github.com/czak/minimal-android-project.git
$ gradle installDebug

The app will be installed on all devices accessible to adb.

Notes

This project makes a few assumptions about your environment in order to build correctly:

  • You have gradle 8.7+ installed - there is no Gradle Wrapper included.
  • You have JAVA_HOME set up. If you have java in your path, you should be good to go.
  • You have ANDROID_HOME set to the root folder of your Android SDK installation.

Additionally, the folder structure relies on the source set convention expected by the Gradle Android plugin:

project
 ├── build.gradle
 └── src
     └── main
         ├── AndroidManifest.xml
         └── java
             └── pl
                 └── czak
                     └── minimal
                         └── MainActivity.java

Contact

Suggestions on how to minimize this further are welcome!

Releases

No releases published

Packages

No packages published

Languages