Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21612

trouble recognizing Android platform SDK installation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.7.2
    • Android Support
    • None
    • Linux/Wayland

    Description

      See screenshots. I have two platform SDKs installed ATM: 4.3 and 6.0. It keeps asking whether to install missing packages, but it never installs anything, and can't seem to detect what is there.

      I always used Arch before, but now I have Ubuntu 18.04 on one machine, so I installed Android Studio from a snap from the Ubuntu software "store" and let it install its SDK and NDK to the standard location in ~/Android.

      When trying to run sdkmanager by hand, I get an error... so that must be why. Creator does not display much of this error; it might be good if it did.

      [yoga][16:48:43] /home/rutledge/Android/Sdk/tools/bin/sdkmanager
                       
      Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
              at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
              at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
              at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
              at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
              at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
              ... 5 more
      

      Attachments

        1. 1.png
          1.png
          75 kB
        2. 2.png
          2.png
          79 kB
        3. 3.png
          3.png
          75 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              vikas Vikas Pachdha
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes