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

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.18.1
    • 1.18.0
    • General
    • None
    • Qt Creator 4.13.3, Windows 10, x86 Android build
    • Android
    • 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
          Max Bespalov
        2. main.cpp
          0.1 kB
          Max Bespalov
        3. Test.java
          1 kB
          Max Bespalov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            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