Update to a new version or branch

Important note: As of version 2.3 you have to use git to update. Updating via zip file does not work anymore.

Install git (if you don’t have it)

  • Any git version should work. For example https://git-scm.com/download/win

  • Make sure to note down the installation path. You will need it in the next step.

    Git installation path

  • Let Studio know where is git.exe located: File - Settings

    Android Studio - open settings

  • In the next window: Version Control - Git

  • Make sure update method “Merge” is selected.

    Android Studio - GIT path

Update your local copy

  • Click: VCS->Git->Fetch

    Android Studio - GIT - Fetch

Selecting branch

  • If you want to change branch select another branch from tray: master (latest release) or another version (please see below)

and then checkout (You can use ‘Checkout as New Branch’ if ‘Checkout’ is not available.)

Updating branch from Github

  • Press Ctrl+T, select Merge method and press OK

On the tray you’ll see green message about updated project

Generate APK & upload to phone

Generate signed apk as described in Building APK (Generate signed APK)

Navigation Generate signed APK

You can check the AAPS version on your phone by clicking the three dots menu on the top right and then about.

AAPS version installed


Kotlin compiler warning

If build completed successfully but you get Kotlin compiler warnings then just ignore these warnings.

App was build successfully and can be transferred to phone.

ignore Kotline compiler warning

Could not download… / Offline Work

If you get a failure message like this

Warning could not download

make sure that ‘Offline work’ is disabled.

File -> Settings

Settings offline work

Uncommitted changes

If you receive failure message like

Failure uncommitted changes

Option 1

  • In Android APS select VCS -> GIT -> Reset HEAD Reset HEAD

Option 2

  • Copy ‘git checkout –’ to clipboard (without quote signs)
  • Switch to Terminal in Android Studio (lower left side of Android Studio window) Android Studio Terminal
  • Paste copied text and press return GIT checkout success

App not installed

phone app note installed

  • Make sure you have transferred the “app-full-release.apk” file to your phone.
  • If “App not installed” is displayed on your phone follow these steps:
    1. Export settings (in AAPS version already installed on your phone)
    2. Uninstall AAPS on your phone.
    3. Enable airplane mode & turn off bluetooth.
    4. Install new version (“app-full-release.apk”)
    5. Importar configurações
    6. Turn bluetooth back on and disable airplane mode

App installed but old version

If you build the app successfully, transferred it to your phone and installed it successfully but the version number stays the same then you might have missed the merging step in the update manual.

None of the above worked

If non of the above tips helped you might consider building the app from scratch:

  1. Export settings (in AAPS version already installed on your phone)
  2. Have your key password and key store password ready In case you have forgotten passwords you can try to find them in project files as described here.
  3. Note down the path to your key store In Android Studio Build -> Generate Signed APK Key store path
    1. Build app from scratch as described here. Use existing key and key store.
  4. When you have build the APK successfully delete the exiting app on your phone, transfer the new apk to your phone and install.
  5. Importar configurações

Worst case scenario

In case even building the app from scratch does not solve your problem you might want to try to uninstall Android Studio completely. Some Users reported that this solved their problem.

Make sure to uninstall all files associated with Android Studio. Manuals can be found online i.e. https://stackoverflow.com/questions/39953495/how-to-completely-uninstall-android-studio-from-windowsv10.

Install Android Studio from scratch as described here.