简体   繁体   English

Qt Android部署失败

[英]Qt Android Deployment Failing

I have tried to modify the Android template files according to the documentation listed here 我尝试根据此处列出的文档修改Android模板文件

In my .pro file I have the following: 在我的.pro文件中,我具有以下内容:

ANDROID_PACKAGE_SOURCE_DIR = Android_Files

And my directory structure looks like this: 我的目录结构如下所示:

QtProject
|-- Android_Files
|   |-- AndroidManifest.xml
|
|-- Resources
|-- Source
|-- Application.pro
|-- Application.pro.user

But when my Qt Creator goes to deploy the application, I get the following error: 但是当我的Qt Creator部署应用程序时,出现以下错误:

Cannot find android sources in Android_Files

Am I missing something? 我想念什么吗?

Android package directory is not right. Android软件包目录不正确。

Use $PWD to refer to the current project directory 使用$ PWD引用当前项目目录

ANDROID_PACKAGE_SOURCE_DIR = $$PWD/Android_Folder_Name

in your case: $$PWD/Android_Files 您的情况: $$PWD/Android_Files

More info about PWD: 有关PWD的更多信息:

The PWD variable specifies the full path leading to the directory containing the current file being parsed. PWD变量指定指向包含正在解析的当前文件的目录的完整路径。 This can be useful to refer to files within the source tree when writing project files to support shadow builds. 在编写支持影子构建的项目文件时,这对于引用源树中的文件很有用。

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

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