23:28:27: Internal Error: Could not find .pro file. Error while building/deployi

时间:2022-10-13 17:04:41
1 建立一个 dll 项目

kit Selection 选择的是案桌环境
Android for armeabi( GCC4.8, Qt 5.4.0 )
3  编译的时候出错
23:28:27: Internal Error: Could not find .pro file.
Error while building/deploying project untitled11 (kit: Android for armeabi (GCC 4.8, Qt 5.4.0))
When executing step "Build Android APK"

若上面2步骤
kit Selection 选择的是
Desktop Qt 5.4.0 MinGW 32bit
没有问题

7 个解决方案

#1


新建的是  library------c++库

#2


连接库的时候,好像也得看这个库是什么编译环境编译的,比如使用VS编译的库就不能使用MinGW,所以改变环境时最好还是连接文件等是配套的,具体怎么做就不知道了,初学者,希望能对你有帮助

#3


引用 2 楼 dell_tx 的回复:
连接库的时候,好像也得看这个库是什么编译环境编译的,比如使用VS编译的库就不能使用MinGW,所以改变环境时最好还是连接文件等是配套的,具体怎么做就不知道了,初学者,希望能对你有帮助

非常感谢  其实还是不太明白  若

1 新建的是  Application 
2 kit Selection 选择的是案桌环境
Android for armeabi( GCC4.8, Qt 5.4.0 )
编译就没有问题

#4


问题已经解决 设置问题

#5


请问下楼上的兄弟,怎么解决的?我也遇到了这个问题。谢谢 

#6


在.pro里改一下这个就可以解决了

TEMPLATE = lib  # for the Desktop (Lin/Win/Mac) this is a "lib"

android {
    TEMPLATE = app  # for Android this is an "app"
}

#7


23:28:27: Internal Error: Could not find .pro file. Error while building/deployi

#1


新建的是  library------c++库

#2


连接库的时候,好像也得看这个库是什么编译环境编译的,比如使用VS编译的库就不能使用MinGW,所以改变环境时最好还是连接文件等是配套的,具体怎么做就不知道了,初学者,希望能对你有帮助

#3


引用 2 楼 dell_tx 的回复:
连接库的时候,好像也得看这个库是什么编译环境编译的,比如使用VS编译的库就不能使用MinGW,所以改变环境时最好还是连接文件等是配套的,具体怎么做就不知道了,初学者,希望能对你有帮助

非常感谢  其实还是不太明白  若

1 新建的是  Application 
2 kit Selection 选择的是案桌环境
Android for armeabi( GCC4.8, Qt 5.4.0 )
编译就没有问题

#4


问题已经解决 设置问题

#5


请问下楼上的兄弟,怎么解决的?我也遇到了这个问题。谢谢 

#6


在.pro里改一下这个就可以解决了

TEMPLATE = lib  # for the Desktop (Lin/Win/Mac) this is a "lib"

android {
    TEMPLATE = app  # for Android this is an "app"
}

#7


23:28:27: Internal Error: Could not find .pro file. Error while building/deployi