Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1628

Assert on second build of Android application with additional java class with native methods

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 1.18.0
    • Fix Version/s: 1.18.1
    • Component/s: General
    • Labels:
      None
    • Environment:
      Qt Creator 4.13.3, Windows 10, x86 Android build
    • Platform/s:
      Android
    • Commits:
      ca486ad0b138d75a6ef73bfc2517424406155d7c (qbs/qbs/1.18)

      Description

      I'm building android application with some additional java code. Java module produces jni interface header which should be compiled by cpp module, but I get assert in rulesapplicator.
      First build ends fine, but next builds or deploys fail with the assert in rulesapplicator.cpp

      Need to notice, that I have one native java method in this example. This triggers javac to produce additional jni c++ header with the proper declarations.

      public class Test extends QtActivity
      {
          public static native void testFunc(String test);
      ...
      }
      

        Attachments

        1. java-extenstion.qbs
          0.6 kB
        2. main.cpp
          0.1 kB
        3. Test.java
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            mabean Max Bespalov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes