Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to build android library by qmake(Qt5)?
QtWS25 Last Chance

How to build android library by qmake(Qt5)?

Scheduled Pinned Locked Moved Mobile and Embedded
c++qt5libraryjava jni
2 Posts 2 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stereomatchingkiss
    wrote on last edited by stereomatchingkiss
    #1

    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 correct

    Qt version : 5.5beta
    Build on windows 7 64bits

    The 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 button

    Then 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 APK

    The 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

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Albus
      wrote on last edited by
      #2

      I meet the same issue. My problem is solved by these steps:

      1. select "projects" in left tool bar of Qt creator.
      2. click "cancel" icon of "Make install" in Build Steps.
      3. 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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved