Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to build jar files from source?



  • im trying to build JAR files for android placed in (only java files without cpp files):

    src/qtbase/src/android/jar/
    

    when i'm going to build jar.pro file that exists in current directory (sdk and jdk are defined in path and qtcreator's settings and they are working) i face this error:

    Src/qtbase/src/android/jar/src/org/qtproject/qt5/android/QtActivityDelegate.java:881: error: cannot find symbol
            if (Build.VERSION.SDK_INT < 24 || !m_activity.isInMultiWindowMode())
                                                         ^
      symbol:   method isInMultiWindowMode()
      location: variable m_activity of type Activity
    Note: Src/qtbase/src/android/jar/src/org/qtproject/qt5/android/QtMessageDialogHelper.java uses or overrides a deprecated API.
    

    What is the correct method to build only jar files?


Log in to reply