Einrichtung Android Studio - avinotec/Stundenplaner.FHE_EAH GitHub Wiki

Android Studio can be downloaded hier for free. We always work on the latest version auf Android Studio as far as it causes no problems. When a new update is available, we update. After this Android Studio often suggest updating further components like Android Emulator or some Build tools. Those updates should be installed as well.

Android SDK

It is recommended to always test the app on a device with target/highest SDK level and minimum SDK. The levels can be found in the build.gradle under targetSdk and minSdk. Currently, this is level 33 and level 21. Both sdks need to be installed which can be done via enabling them under File>Settings>Appearance & Behavior>System Settings>Android SDK.

Furthermore, you need to install some SDK Tools the same way. The currently used version of the build tools can be found in the build.gradle under buildToolsVersion.

Android Emulator

To test the app in the target and minimal sdk level, create new devices with those levels (unless you have an android phone with those sdks ready to debug on) in the Device Manager (found at the top right corner of Android Studio).

Project Structure

The Project Structure should look like this:

We have to build variants: release and debug

Git Token

To be able to push your commits to the repository, you need to log in with your GitHub account. To do so you go to Setting > Version Control > Github and press the little plus icon. Choose "Log In with Token".

To get your personal GitHub token, you need to follow this instruction. It tells you to go to your Settings at github.com and to Developer Settings at the very bottom where you can create a new token (classic) under Personal Access Token.