简体   繁体   English

Qt没有检测到Android NDK

[英]Qt does not detect Android NDK

I want to develop Android apps with Qt. 我想用Qt开发Android应用程序。 I have Extracted the Android SDK and NDK to C:\\ . 我已将Android SDK和NDK提取到C:\\ This is the NDK I downloaded: 这是我下载的NDK:

https://squeak-android-vm.googlecode.com/files/android-ndk-1.6_r1-windows.zip https://squeak-android-vm.googlecode.com/files/android-ndk-1.6_r1-windows.zip

But Qt 5.2.1 does not detect the NDK and this error is shown: 但是Qt 5.2.1没有检测到NDK并且显示了以下错误:

"C:\\android-ndk-1.6_r1" does not seem to be an Android NDK top folder. “C:\\ android-ndk-1.6_r1”似乎不是Android NDK顶级文件夹。

Do I downloaded a wrong NDK? 我下载了错误的NDK吗? Did I miss something? 我错过了什么?

Thanks 谢谢

First of all I strongly recommend to install the latest version of Qt for Android (5.4.1 at present). 首先,我强烈建议安装最新版本的Qt for Android(目前为5.​​4.1)。 Also you should download and install Android SDK (ver. 22+) and NDK (ver. r9+) from here . 此外,您还应从此处下载并安装Android SDK(版本22+)和NDK(版本号r9 +)。

After downloading extract them. 下载后提取它们。 For Android SDK you should have a connection to Internet and download the desired tools. 对于Android SDK,您应该连接到Internet并下载所需的工具。 you have to install at least Android API-13! 你必须安装至少Android API-13! You should also install Android SDK Platform-tools and Android SDK Build-tools. 您还应该安装Android SDK Platform-tools和Android SDK Build-tools。

I had the same problem. 我有同样的问题。 The problem was I first created a Android NDK folder to extract the Android NDK files into it. 问题是我首先创建了一个Android NDK文件夹来将Android NDK文件解压缩到其中。 The extraction procession then created a sub folder of the same name. 然后,提取过程创建了一个同名的子文件夹。 To solve the problem, I moved the sub folder one directory level up and deleted the initial Android NDK folder I first created. 为了解决这个问题,我将子文件夹向上移动了一个目录级别并删除了我首次创建的初始Android NDK文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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