一直用QT5.5.1,周末無事,升級到5.14,發現各版本的NDK都無法完美運行,有換成5.9,還是各種出錯
最后發現,QT版本與NDK版本有兼容問題,具體原因未知,只能按網上大神的推薦去摸索安裝使用
完美運行並編譯出APK文件的版本如下:
1.NDK下載:android-ndk-r19c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip
測試后發現,r18和R19能完美匹配QT5.12.0
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip
NDK各版本下載地址如下
歷史版本:
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r20b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r20b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r19c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r19c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r18b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r17c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r16b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r15c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r14b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r12b-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r11c-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-windows-x86.zip
https://dl.google.com/android/repository/android-ndk-r10e-windows-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-darwin-x86_64.zip
https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64.zip
2.SDK下載 android-sdk_r24.1-windows
http://tools.android-studio.org/index.php/sdk
3.JDK
下載JDK1.8(SDK只支持JDK1.8):親測JDK-8u191、JDK-8u201、JDK-8u241可以無錯運行
https://www.oracle.com/java/technologies/javase-jdk8-downloads.html
4.QT5.12.0
https://iso.mirrors.ustc.edu.cn/qtproject/archive/qt/5.12/5.12.0/qt-opensource-windows-x86-5.12.0.exe
具體配置就不說了。以上版本完美運行,編譯不出錯。