Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Bad Parsing of AVD API Level
Forum Updated to NodeBB v4.3 + New Features

Bad Parsing of AVD API Level

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 852 Views 2 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.
  • A Offline
    A Offline
    Archimede
    wrote on last edited by SGaist
    #1

    Output of sdkmanager contains the following two lines:

    Target: Google APIs (Google Inc.)
    Based on Android 5.0.1 (API level 21)

    The parsing source code androidConfig::androidVirtualDevices() (androidconfigurations.cpp) is :

    if (line.contains(QLatin1String("Target:"))) {
        int lastIndex = line.lastIndexOf(QLatin1Char(' '));
        if (lastIndex == -1) // skip line
            break;
        QString tmp = line.mid(lastIndex).remove(QLatin1Char(')')).trimmed();
        if (tmp == QLatin1String("L")) // HACK for android-L preview
            dev.sdk = 20;
        else
            dev.sdk = tmp.toInt();
    }
    

    The dialog show avd target s API0 even if the real api level is 21.

    [edit: Corrected coding style SGaist]

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Which version of Qt Creator is it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Which version of Qt Creator is it ?

        A Offline
        A Offline
        Archimede
        wrote on last edited by
        #3

        @SGaist
        I have installed QTCreator 3.3.1 but the code is like that even in the master branch.

        Bye

        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 Extensions
        • Unsolved