Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Target id 'android--1' is not valid

Target id 'android--1' is not valid

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 2.0k 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.
  • S Offline
    S Offline
    spaghetti.coder
    wrote on last edited by
    #1

    I try to create a Qt application for desktop and android platforms. All parameters in Tools->Options->Android are correct. When I try to build my application, I get an error:

    Error: Target id 'android--1' is not valid. Use 'android.bat list targets' to get the target ids.
    

    But I have several platforms installed (android-10, 15, 19, 23). Also, I have found some info on the same issue, but it have not helped me.

    I use:

    • Windows 7 x64
    • Qt Creator 3.6.0 Based on Qt 5.5.1 (MSVC 2013, 32 bit)
    • Qt 5.5.1

    Has somebody encountered with the same problem?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mvuori
      wrote on last edited by
      #2

      Yes I have. I think the problem (in my case) was in the Manifest, which had a reference to a wrong sdk level. Can't remember if you could edit the relevant value through the UI, but if you open the manifest as a text file, I'm sure you'll notice any funny values there.

      S 1 Reply Last reply
      0
      • M mvuori

        Yes I have. I think the problem (in my case) was in the Manifest, which had a reference to a wrong sdk level. Can't remember if you could edit the relevant value through the UI, but if you open the manifest as a text file, I'm sure you'll notice any funny values there.

        S Offline
        S Offline
        spaghetti.coder
        wrote on last edited by
        #3

        @mvuori I cannot see anything strange in the manifest file. And what is more, it is refreshed everytime I try to build the project. So to change the manifest file is senseless in my case (: But I have noticed, that there are no platforms at all in the list located at:

        Projects->Android for armeabi-v7a->Build Android APK->Details->Android build SDK
        

        WTF!? )

        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