Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Build for Android failed after update on Qt 5.15.8. How to fix it?

Build for Android failed after update on Qt 5.15.8. How to fix it?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 1 Posters 982 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote on 13 Feb 2022, 09:09 last edited by
    #1

    Hello!
    I've got updated Qt on Qt 5.15.8 and got stacked with that error:

    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '/Users/alexandr/Projects/project/project-Android_Qt_5_15_8_Clang_Multi_Abi-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`.
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    
    You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    
    See https://docs.gradle.org/7.2/userguide/command_line_interface.html#sec:command_line_warnings
    
    
    BUILD FAILED in 4s
    Building the android package failed!
      -- For more information, run this command with --verbose.
    12:05:53: The process "/Users/alexandr/Tools/QtCommercial/5.15.8/android/bin/androiddeployqt" exited with code 14.
    Error while building/deploying project KRN_MailClient_Mobile (kit: Android Qt 5.15.8 Clang Multi-Abi)
    When executing step "Build Android APK"
    

    Is it next one bug or I am missing something?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote on 13 Feb 2022, 10:24 last edited by
      #2

      Just downgraded to Qt 5.15.7. Everything working fine. Suppose it's next one bug ...

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bogong
        wrote on 13 Feb 2022, 10:27 last edited by
        #3

        Issue closed. Opened bug report https://bugreports.qt.io/browse/QTBUG-100807

        1 Reply Last reply
        0

        1/3

        13 Feb 2022, 09:09

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved