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.
Let Studio know where is git.exe located: File - Settings
In the next window: Version Control - Git
Make sure update method “Merge” is selected.
Update your local copy¶
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
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.
Could not download… / Offline Work¶
If you get a failure message like this
make sure that ‘Offline work’ is disabled.
File -> Settings
If you receive failure message like
- In Android APS select VCS -> GIT -> Reset HEAD
- Copy ‘git checkout –’ to clipboard (without quote signs)
- Switch to Terminal in Android Studio (lower left side of Android Studio window)
- Paste copied text and press return
App not 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:
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:
- Export settings (in AAPS version already installed on your phone)
- 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.
- Note down the path to your key store In Android Studio Build -> Generate Signed APK
- Build app from scratch as described here. Use existing key and key store.
- When you have build the APK successfully delete the exiting app on your phone, transfer the new apk to your phone and install.
- 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.