zhuzichu520 / FluentUI

FluentUI for QML
MIT License
3.16k stars 422 forks source link

安卓编译:Product type is not an application, not building an APK. #417

Open cloud-jxy opened 5 months ago

cloud-jxy commented 5 months ago

错误信息如下:

21:54:57: 部署到安卓设备/模拟器初始化
21:54:57: 部署到
21:54:57: 为项目FluentUI执行步骤 ...
21:54:57: 正在启动 "D:\tools\CMake\bin\cmake.exe" --build D:/github/build-FluentUI-Qt_6_6_1_Clang_x86_64-Debug --target all

ninja: no work to do.
21:54:57: 进程"D:\tools\CMake\bin\cmake.exe"正常退出。
21:54:57: Product type is not an application, not building an APK.
21:54:57: 启动:D:\Qt\6.6.1\mingw_64\bin\androiddeployqt.exe --verbose --output D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-build --no-build --input D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-fluentuiplugin-deployment-settings.json --gradle --reinstall --device emulator-5554
Cannot read from input file: D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-fluentuiplugin-deployment-settings.json
21:54:57: 进程"D:\Qt\6.6.1\mingw_64\bin\androiddeployqt.exe"退出,退出代码 2 。
21:54:57: 安装应用失败,发生未知错误。

版本: QtCreator:12.0.1 jdk:openJdk-17.0.10.7 sdk:12 ndk: 25

cloud-jxy commented 5 months ago

Qt:6.6

zhuzichu520 commented 5 months ago

这个项目没考虑移动端,只关注PC端。。。

Edassap commented 2 months ago

错误信息如下:

21:54:57: 部署到安卓设备/模拟器初始化
21:54:57: 部署到
21:54:57: 为项目FluentUI执行步骤 ...
21:54:57: 正在启动 "D:\tools\CMake\bin\cmake.exe" --build D:/github/build-FluentUI-Qt_6_6_1_Clang_x86_64-Debug --target all

ninja: no work to do.
21:54:57: 进程"D:\tools\CMake\bin\cmake.exe"正常退出。
21:54:57: Product type is not an application, not building an APK.
21:54:57: 启动:D:\Qt\6.6.1\mingw_64\bin\androiddeployqt.exe --verbose --output D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-build --no-build --input D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-fluentuiplugin-deployment-settings.json --gradle --reinstall --device emulator-5554
Cannot read from input file: D:/Qt/6.6.1/android_x86_64/qml/FluentUI/android-fluentuiplugin-deployment-settings.json
21:54:57: 进程"D:\Qt\6.6.1\mingw_64\bin\androiddeployqt.exe"退出,退出代码 2 。
21:54:57: 安装应用失败,发生未知错误。

版本: QtCreator:12.0.1 jdk:openJdk-17.0.10.7 sdk:12 ndk: 25

这边博客可以帮助你解决这个问题:https://blog.csdn.net/binzhongbi757/article/details/136759465。 说一下结果,整体上是可以在android 上使用的,比如一些Button、RadioButton、CheckBox、TreeView等标准控件,但是还是有一些控件不可以,如TextBox,TableView、ColorPicker、ProgressBar等。按作者所说的,整体FluentUI框架都是基于PC的,不管是页面样式和跳转、还是人机交互方式。所以如果你只是想学习和借鉴,OK,完全可以试着去做。但真正的落地到应用上,还是鼓励你学习下Android。构建复杂的APP,Qt For Android 不太适合,至少现在是如此。