Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-86573

Jdk 8+ throws warnings when building apps for Android

XMLWordPrintable

    • Android
    • 2020wk46

      The following warning is thrown when building Android apps using JDK 11 (seems to happen for any JDK 8+).

      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/assam/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/lib/groovy-all-1.3-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
      WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      

      We loosened the JDK version recommendation from 8 recently, but it seems, we must recommend JDK 8 exclusively again when working with Qt for Android.

      This should be reflected in the Qt for Android docs and Qt Creator. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            assam Assam Boudjelthia
            assam Assam Boudjelthia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes