simple android app showing random harvard sentences
Find a file
2023-05-03 20:30:06 +02:00
app initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
.editorconfig initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
.gitignore initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
build.gradle initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
gradle.properties initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
gradlew initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
gradlew.bat initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
local.properties initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
README.md initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00
settings.gradle initial commit: barebones app that sorta builds 2023-05-03 20:30:06 +02:00

Example Android project

This project is ready with gradle wrapper 7.3.3 and all strictly necessary files for developing android apps from scratch.

Installing Android SDK

Note that you will need to download an android SDK: find them at the bottom of Android Studio download page (under "Command line tools only"). Once that is done, set your ANDROID_HOME environment variable to point to where you just extracted your files. If you'd rather choose where android caches its stuff, also set ANDROID_SDK_HOME and ANDROID_USER_HOME (note that, if equal to ANDROID_HOME, they seem to get ignored).

This is not enough: gradle will complain that no license was accepted. You need to navigate to your SDK folder, enter ./bin directory and run ./sdkmanager --licenses. (If you haven't set your sdk root, also pass --sdk_root=..) It's not super clear what --licenses will do, but it seems that it fetches the current licenses from Google servers and then asks you to accept them. Once that is done, a new folder licenses will be created in your SDK root, containing an unique identifier for each software which license you accepted.

Once you downloaded the SDK and accepted Google licenses, try to build the project once: Gradle will download missing components (such as Platform Tools, Patch Applier, Android Emulator, SDK Tools, Build Tools, SDK platform).