简体   繁体   中英

Qt for Android Error: Target id 'android--1' is not valid

I try to create a Qt application for desktop and android platforms. All parameters in Tools->Options->Android are correct.

Qt Android settings

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 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. Close the project
  2. Open ProjectName.pro.user file with notepad
  3. Find value with key: "BuildTargetSdk"
  4. Change 'android--1' to Something like 'android-16' or other version
  5. Save the file and open the project again may be needed to repeat steps again

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM