Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27694

Can't build Qt6 Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 7.0.2
    • Fix Version/s: None
    • Component/s: Android Support
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      1. Create empty Qt Quick application
      2. Choose Qt 6.2.4 or Qt 6.3 Android armv7 SDK
      3. Build

      I'm getting this error:

      FAILURE: Build failed with an exception.* Where:
      Build file 'C:\Users\alexa\Documents\QtCreator\build-testnewqt-Android_Qt_6_2_4_Clang_armeabi_v7a-Debug\android-build\build.gradle' line: 17* What went wrong:
      A problem occurred evaluating root project 'android-build'.
      > Failed to apply plugin 'com.android.internal.application'.
         > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
           You can try some of the following options:
             - changing the IDE settings.
             - changing the JAVA_HOME environment variable.
             - changing `org.gradle.java.home` in `gradle.properties`.

      I've checked Qt Creator settings in Tools | Options | Devices - it shows no errors:

      Please note that I have no errors building Qt 5.12.12 applications AND I had no errors building applications using maybe Qt 6.2.3(I do not remember exact version and Qt Creator version).

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              portale Alessandro Portale
              Reporter:
              alervd Alexander Dyagilev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes