Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. TLS initialization failed: Downloading Android SDK Tools
QtWS25 Last Chance

TLS initialization failed: Downloading Android SDK Tools

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 11 Posters 3.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aforth
    wrote on 5 Jul 2022, 10:23 last edited by aforth 7 May 2022, 10:24
    #1

    I am developing a small game for android. My computer is currently running on Linux. When ever I go to tools. Android settings and then set up SDK I get the following error.

    Downloading Android SDK Tools from URL https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip has failed: TLS initialization failed.

    I then proceeded to follow the link and extract the zip file myself. However qt creator can't see that I have done this. Even when I browse to the path where the SDK is installed.Screenshot from 2022-07-05 12-24-19.png

    O 1 Reply Last reply 29 Jul 2022, 11:15
    3
    • A aforth
      5 Jul 2022, 10:23

      I am developing a small game for android. My computer is currently running on Linux. When ever I go to tools. Android settings and then set up SDK I get the following error.

      Downloading Android SDK Tools from URL https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip has failed: TLS initialization failed.

      I then proceeded to follow the link and extract the zip file myself. However qt creator can't see that I have done this. Even when I browse to the path where the SDK is installed.Screenshot from 2022-07-05 12-24-19.png

      O Offline
      O Offline
      os skale
      wrote on 29 Jul 2022, 11:15 last edited by
      #2

      @aforth i have same problem

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mohsenDh
        wrote on 14 Aug 2022, 19:10 last edited by
        #3

        i have this problem too!

        M 1 Reply Last reply 14 Aug 2022, 20:41
        0
        • M mohsenDh
          14 Aug 2022, 19:10

          i have this problem too!

          M Offline
          M Offline
          mohsenDh
          wrote on 14 Aug 2022, 20:41 last edited by
          #4

          I installed android studio and a made simple new project.
          it downloaded every thing .. after that Qt downloaded some essential packages for qt and all set!

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JustCharles
            wrote on 31 Oct 2022, 10:52 last edited by
            #5

            I downloaded the ZIP file mentioned, extracted it to Android SDK location, but into "latest" subdirectory (when I tried to execute bin/sdkmanager, it complained about nonstandard location, so I repaired like this). This results in "Android/Sdk/cmdline-tools/latest/bin" directory.

            Second thing I had to do was downloading OpenJDK 11. My local copy is writable (the Ubuntu's global install is not).

            After these two steps, the rest of the Qt automated process started to work.

            A 1 Reply Last reply 1 Jun 2023, 06:21
            1
            • E Offline
              E Offline
              e2002e
              wrote on 12 Dec 2022, 20:49 last edited by
              #6

              Anyone has fixed that ?
              Even after a manual install Qt doesn't find the sdk

              1 Reply Last reply
              0
              • C Offline
                C Offline
                cristian-adam
                wrote on 12 Dec 2022, 21:25 last edited by
                #7

                The TLS error comes from the fact that Qt is being built against Open SSL 1.1 and Ubuntu comes with Open SSL 3 and they are incompatible. See QTCREATORBUG-28397
                Not able to setup Android SDK on Ubuntu 22.04.1

                You can get the setup_android.cmake script and run it via cmake -P setup_android.cmake.

                The script might be a bit outdated, have a look at the android/sdk_definitions.json and adjust the values.

                Then point Qt Creator to the new directories.

                1 Reply Last reply
                2
                • J JustCharles
                  31 Oct 2022, 10:52

                  I downloaded the ZIP file mentioned, extracted it to Android SDK location, but into "latest" subdirectory (when I tried to execute bin/sdkmanager, it complained about nonstandard location, so I repaired like this). This results in "Android/Sdk/cmdline-tools/latest/bin" directory.

                  Second thing I had to do was downloading OpenJDK 11. My local copy is writable (the Ubuntu's global install is not).

                  After these two steps, the rest of the Qt automated process started to work.

                  A Offline
                  A Offline
                  ayaromenok
                  wrote on 1 Jun 2023, 06:21 last edited by
                  #8

                  @JustCharles said in TLS initialization failed: Downloading Android SDK Tools:

                  Second thing I had to do was downloading OpenJDK 11. My local copy is writable (the Ubuntu's global install is not).

                  Error message is wrong - JDK just not installed (you can try to check by typing javac), so solution is: sudo apt install openjdk-11-jdk-headless

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    Espoo
                    wrote on 30 Jun 2023, 12:27 last edited by
                    #9

                    1.download libssl 1.1.1 sources
                    2.compile and install libssl 1.1.1
                    3. run qtcreator with followind command: LD_PRELOAD=/usr/local/ssl/lib/libcrypto.so:/usr/local/ssl/lib/libssl.so ./qtcreator , where /usr/local/ssl/lib is path to your libssl 1.1.1

                    1 Reply Last reply
                    2
                    • A Offline
                      A Offline
                      amgad_23
                      wrote on 9 Aug 2023, 10:35 last edited by
                      #10

                      sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
                      you could try installing these libraries and try again

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        carlosMatheusNeto
                        wrote on 9 Aug 2023, 21:52 last edited by carlosMatheusNeto 8 Sept 2023, 22:43
                        #11

                        I solved here using this method
                        First, click on the "world" icon in the right of setup sdk"
                        9bd421f8-b24d-4dac-ad1b-f8e097db2124-image.png
                        install the zip file for linux
                        39fdfe9e-dca9-40b2-b07c-a66871c58134-image.png
                        Follow this tutorial here
                        f508fefe-4152-4c99-a2bf-3bf07d801a86-image.png
                        After that , open your terminal and use this command, where the "sdkxdxd" is the name of your folder ( mine is sdkxdxd), it will start installing stuff with a fetch, click Y and it will finnish
                        e1521eb6-aaaa-42c2-9b61-5b6fcb70dbd7-image.png
                        Now you can go back to your QT, go to preferences->devices->android and search in the "Android SDK location" for the folder where you did all the stuff. Mine look like this
                        b9b35a6c-7138-4c05-b056-09a787f99f0c-image.png
                        After i choose the folder, it started installing the rest of the stuff automatically ( a pop up will appear), if it doesnt, i reccomend following the documentation from Android
                        https://developer.android.com/tools/sdkmanager
                        Hope it works for everyone

                        1 Reply Last reply
                        1
                        • Pete CarterP Offline
                          Pete CarterP Offline
                          Pete Carter
                          wrote on 16 Aug 2023, 23:29 last edited by
                          #12

                          In Fedora Linux 38

                          1. sudo dnf install openssl1.1

                          2. Try to Set Up SDK again and it should work

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved