Qt Creator Android错误“已安装平台SDK"; [英] Qt Creator Android error "Platform SDK installed"

查看:338
本文介绍了Qt Creator Android错误“已安装平台SDK";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android开发Qt Cross平台应用程序,最近我更新了Qt创建者并安装了新的Qt版本.我正在使用'Qt Creator version 4.5.0'.我已经更新到'QT version 5.10'.该设置是在Ubuntu 16.04上完成的.

I am developing Qt Cross platform application for Android, recently i have updated Qt creator and Installed new Qt version. I am using 'Qt Creator version 4.5.0'. I have updated to 'QT version 5.10'. This Set up is done on Ubuntu 16.04.

以下链接 QT安装入门.

我总是在Qt Creator->工具->选项->设备-> Android中收到错误消息"Android设置有错误" .

I am always getting Error message "Android Settings have error" in Qt Creator->Tools->Options->Devices->Android.

由于上述问题,我无法为Android构建应用程序.

Because of above issue i am not able to build application for Android.

我最近更新了我的Android SDK,能够从Android Studio构建并运行示例应用程序,这表明SDK的安装工作正常.我正在使用Android SDK工具26.1.1.请检查下面的屏幕截图.

I have recently updated my Android sdk, I am able to build and run Sample application from Android Studio, indicating that SDK instalation is working properly. I am using Android SDK tools 26.1.1. Please check bellow screen shots.

已安装Android SDK构建工具.

Android SDK build tools Installed.

已安装Android SDk平台

Android SDk platforms installed

已经遍历了Stack Overflow和QT论坛上的不同链接,所有这些都建议将Android SDK工具降级(由于QT已知错误),但是没有一种解决方案适合我.我知道很少有使用QT 5.9和Qt Creator 4.0版构建Android应用程序的错误.我想它已经解决了,因为在Windows 10上相同的设置也可以正常工作.

Already gone through different links on Stack Overflow and QT forum, All are Suggesting downgrade of Android SDK tools(Due to QT Known bug), but none of the solution is working for me. I know there are few known bugs building Android application with QT 5.9 and Qt Creator version 4.0. I guess It is resolved, as same set up is working fine on Windows 10.

QT Creator不会列出任何可用的Android Build SDK QT Android安装错误

如果有人解决了同样的问题,请提供帮助.

Please help if anybody here resolved same issue.

推荐答案

经过艰苦的努力,我能够解决这个问题,这要归功于Vesafary的Mohammad Kanan,他的回答使我离答案越来越近,实际问题已通过以下解决脚步.在Ubuntu中面临相同问题的人或在其他平台上也可能会有所帮助.

After lot of effort I am able to fix this issue, thanks to Mohammad Kanan, Vesafary who's answer made me get closer to Answer, Actual issue resolved with the following steps. It may be helpful who are facing the same issue In Ubuntu or may work on other platforms as well.

  1. 第一步(根据大多数答案的建议)已从JDK 9更改为JDK8.我正在使用Java版本"1.8.0_152" .
  2. 第1步对我没有帮助(Qt创建者坚持了一些设置),因此我删除了完整的Qt 5.8、5.9、5.10安装(使用 Qt Maintenanceace工具),并删除了以下2个链接 完全卸载Qt 卸载Qt Creator .
  1. First Step is (as most of the answers suggest) changed from JDK 9 to JDK 8. I am using Java version "1.8.0_152".
  2. Step 1 didn't help me (Qt creator Persist some Settings), so i removed complete Qt 5.8,5.9,5.10 installation (Using Qt Maintainace tool) and following 2 links Uninstall Qt Completely, Uninstall Qt Creator.

,然后再次进行安装.可能是您的问题在此步骤得到解决.

and did Instalation again. May be your problem get resolved at this step.

  1. 对于我来说,步骤2也无济于事,QT Creator仍然保留一些设置,需要重置Qt Creator设置.可以通过删除该文件夹中的数据来完成

  1. Step 2 also didn't help in my case, QT Creator still persist few settings and need to reset Qt creator settings. That can be done by deleting data in this folder

〜/.config/QtProject〜/.config/Qt文件〜/.config/QtProject.conf

~/.config/QtProject ~/.config/Qt file ~/.config/QtProject.conf

路径在不同的系统和操作系统中可能不同.在这种情况下,以下链接将很有帮助.

path may be different in different System and OS. following links will be helpful in this case.

创建者常见问题解答

堆栈溢出Qt设置1

堆栈溢出Qt设置2

现在我可以构建和运行android应用程序了.

Now i am able to build and run android application.

这篇关于Qt Creator Android错误“已安装平台SDK";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆