How to build android library by qmake(Qt5)?
-
Trying to build a notification library for android but do not know how to do it with qmake.
The Qt5 apps can run on the android devices, I think the settings the android environments should be correctQt version : 5.5beta
Build on windows 7 64bitsThe steps I try to create the library :
1 : Start QtCreator
2 : go to File->New file or project
3 : select library->c++ library
4 : enter project name and location
5 : select android kit(armv7a)
6 : click build buttonThen I get error messages as following
Internal Error: Unknown Android deployment JSON file location.
Error while building/deploying project QNotify (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.5.0))
When executing step "Build Android APKThe project(just as simple class with a constructor) could download from here
The purpose of this library is encapsulate the notification functions of the android, so I do not need to copy and paste the codes everywhere.
Thank you very much
-
I meet the same issue. My problem is solved by these steps:
- select "projects" in left tool bar of Qt creator.
- click "cancel" icon of "Make install" in Build Steps.
- click "cancel" icon of "Build Android APK" in Build Steps.
The click actions look not operating at all, but after these clicks, the project is allowed to build.