Skip to content

Commit

Permalink
Merge pull request #2095 from tanja3981/master
Browse files Browse the repository at this point in the history
#2094: Update installation instructions to ladybug
  • Loading branch information
psonnera authored Oct 8, 2024
2 parents 0e17779 + ef34884 commit df64477
Show file tree
Hide file tree
Showing 85 changed files with 166 additions and 208 deletions.
318 changes: 139 additions & 179 deletions docs/EN/Installing-AndroidAPS/building-AAPS.md

Large diffs are not rendered by default.

56 changes: 27 additions & 29 deletions docs/EN/Installing-AndroidAPS/troubleshooting_androidstudio.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Gradle Sync can fail to various reasons. Wen you get a message saying that gradl
These are the usual gradle sync failures:
* [Uncommitted changes](troubleshooting_androidstudio-uncommitted-changes)
* [No cached version of ... available](troubleshooting_androidstudio-could-not-resolve-no-cached-version)
* [Android Gradle requires Java 11 to run](troubleshooting_androidstudio-android-gradle-plugin-requires-java-11-to-run)
* [Incompatible Gradle JVM](incompatible-gradle-jvm)
* [Incompatible version of the Android Gradle plugin](incompatible-version-of-android-gradle-plugin)

*Important*:
After you have followed the instructions for your specific problem, you need to trigger the [gradle sync](troubleshooting_androidstudio-gradle-resync) again.
Expand Down Expand Up @@ -103,43 +104,41 @@ If you receive a failure message like

#### Step 3: Resync Gradle (again)

Follow the instructions at [Gradle Resync](troubleshooting_androidstudio-step-3-gradle-resync).
Follow the instructions at [Gradle Resync](gradle-resync).

(troubleshooting_androidstudio-android-gradle-plugin-requires-java-11-to-run)=

### Incompatible version of Android Gradle plugin

If you experience the following error message

![Incompatible version of Android Gradle plugin](../images/studioTroubleshooting/15_InkompatibelAndroidGradlePlugin.png)

You are using an outdated version of Android Studio.
In the menu, go to Help > Check for updates and install any updates of Android Studio and its plugins that are found.

### Android Gradle plugin requires Java 17 to run

You might experience this error message:
(incompatible-gradle-jvm)=
### Incompatible Gradle JVM ###

![Android Gradle plugin requires Java 17 to run](../images/studioTroubleshooting/11_GradleJDK.png)
![Incompatible Gradle JVM](../images/studioTroubleshooting/160_InkompatibelAndroidGradleJVM.png)
If you experience the following error message, you need to download a correct JVM version before you can try again:
* Open the gradle view by clicking on the elephant (1) on the right side of Android Studio and open the settings (2) and select **Gradle Settings** (3):

![Open Gradle Settings](../images/studioTroubleshooting/161_GradleSettings.png)

Click on "Gradle Settings" (1) to go to open the gradle settings.

If you don't have the link to the "Gradle Settings", open the Gradle settings manually by selecting the Gradle Tab on the right border (1), select the tools icon (2) and there the item 'Gradle Settings' (3).
* Open the **Gradle JDK** options, then select **Download JDK...**

![Gradle Settings](../images/studioTroubleshooting/09_GradleSettings.png)
![Select Download JDK](../images/studioTroubleshooting/162_DownloadJDK.png)

When you have opened the Gradle settings dialog, open the options (1) at "Gradle JDK" and selected the "jbr-17" (2), which should be located within your Android Studion installation directory.
* At **Version** (1), you need to select **17**. Then select the **JetBrains Runtime** from the **Vendor** (2) options. Do not change the **Location** (3).

![Gradle Settings](../images/studioTroubleshooting/12_GradleSettingsJDK.png)
![Select JDK 17](../images/studioTroubleshooting/163_JDKSelection.png)

Press "OK" to save and close the settings dialog.
* Close the **Settings** dialog with **OK**.
* You now need to restart the Gradle Sync. Follow the instructions at [Gradle Resync](gradle-resync).

*Important*: If you don't see the setting "Gradle JDK", you might have not updated Android Studio. Make sure you are using Android Studio 2022.3 Giraffe) or newer.
(incompatible-version-of-android-gradle-plugin)=
### Incompatible version of Android Gradle plugin

Now you need to trigger a [Gradle Resync](troubleshooting_androidstudio-step-3-gradle-resync)
If you experience the following error message

![Incompatible version of Android Gradle plugin](../images/studioTroubleshooting/15_InkompatibelAndroidGradlePlugin.png)

You are using an outdated version of Android Studio.
In the menu, go to Help > Check for updates and install any updates of Android Studio and its plugins that are found.

(troubleshooting_androidstudio-could-not-resolve-no-cached-version)=

### Could not resolve/No cached version

You might get this error message:
Expand All @@ -152,19 +151,18 @@ Follow the instructions at [Gradle Resync](troubleshooting_androidstudio-step-3-

![Gradle Offline Mode](../images/studioTroubleshooting/10_GradleOfflineMode.png)

* Now you need to trigger a [Gradle Resync](troubleshooting_androidstudio-step-3-gradle-resync)
* Now you need to trigger a [Gradle Resync](gradle-resync)

(troubleshooting_androidstudio-unable-to-start-daemon-process)=
### Unable to start daemon process

If you see an error message like the one below you probably use a Windows 10 32-bit system. This is not supported by Android Studio 3.5.1 and above and unfortunately nothing the AAPS developer can do about.

If you are using Windows 10 you must use a 64-bit operating system.
If you see an error message like the one below you probably use a Windows 10 32-bit system. This is not supported by Android Studio 3.5.1 and above and unfortunately nothing the AAPS developer can do about!

There are a lot of manuals on the internet how to determine wether you have a 32-bit or 64-bit OS - i.e. [this one](https://support.microsoft.com/en-us/windows/32-bit-and-64-bit-windows-frequently-asked-questions-c6ca9541-8dce-4d48-0415-94a3faa2e13d).

![Screenshot Unable to start daemon process](../images/AndroidStudioWin10_32bitError.png)

(gradle-resync)=
### Gradle Resync

If you can still see the message that the gradle sync failed, now select the Link "Try again".
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added docs/EN/images/Building-the-App/020_ImproveAS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/EN/images/Building-the-App/032_GetVCS.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/EN/images/Building-the-App/033_CloneGit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/EN/images/Building-the-App/039_GitTest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Binary file added docs/EN/images/Building-the-App/041_APK.png
Binary file added docs/EN/images/Building-the-App/043_Keystore.png
Binary file added docs/EN/images/Building-the-App/045_BuildPath.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/04_AS_StartMenu.png
Diff not rendered.
Binary file added docs/EN/images/Building-the-App/050_LocateAPK.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/07_CloseAS_Setup.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/09_MissingSDK.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/15_Welcome_AS.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/16_Get_from_VCS.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/17_select_URL.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/20_close_popup.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/22_Git_path.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/23a_Git_path_OK.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/25_build_apk.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/26_generate_APK.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/27_new_keystore.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/30_new_keystore.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/31_generate_APK.png
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/32_full_release.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/36_locate_apk.png
Diff not rendered.
Diff not rendered.
Binary file removed docs/EN/images/Building-the-App/OldUI.png
Diff not rendered.
Binary file added docs/EN/images/Building-the-App/trustProject.png

0 comments on commit df64477

Please sign in to comment.