Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Creating AVD
Qt 6.12 LTS is out! See what's new in the release blog

Creating AVD

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 887 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    gabor53
    wrote on last edited by
    #1

    Hi,
    I have tried to create an AVD using Qt > Options > Devices > AVD Manager tab Add button.
    I went through all the available ABIs with target API android-25. Every time I got the following message:
    Exception in thread main java.long.NoClassDef Found Error: javax/xml/bind/annotation/XmlSchema.
    I am wondering how can I fix this.
    Thank you.

    1 Reply Last reply
    0
    • webzoidW Offline
      webzoidW Offline
      webzoid
      wrote on last edited by
      #2

      @gabor53 What version of the Java JDK and JRE have you installed? The only one I've been able to get working is JDK version 8 - I've tried the later versions but they also fail with a similar error to what you are seeing. I did manage to get rid of this error but there are issues elsewhere.

      To solve your error, open up the advmanager.bat file using a text editor (not Notepad) and paste the following into the file:

      if "%OS%"=="Windows_NT" setlocal
      
      set DIRNAME=%~dp0
      if "%DIRNAME%" == "" set DIRNAME=.
      set APP_BASE_NAME=%~n0
      set APP_HOME=%DIRNAME%..
      
      // #### ADD THIS LINE HERE ####
      set JAVA_OPTS=-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee
      // ####
      
      @rem Add default JVM options here. You can also use JAVA_OPTS and AVDMANAGER_OPTS to pass JVM options to this script.
      set DEFAULT_JVM_OPTS="-Dcom.android.sdkmanager.toolsdir=%~dp0\.."
      
      @rem Find java.exe
      if defined JAVA_HOME goto findJavaFromJavaHome
      

      Try running the ADV Manager again from within QtCreator.

      1 Reply Last reply
      0

      • Login

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