Cannot build an Android application with QtCreator 4.5.1



  • I have been using Qt 5.6 for developing a cross-platform (Windows/Linux/Mac/Android) applications fro some time. Recently I have made a terrible blunder of updating Qt Creator along with installing Qt 5.9.4, which have completely broken creation of Android applications.

    Compiling may be OK, but in the end I get the following error:

    • What went wrong:
      A problem occurred evaluating root project 'android-build'.

    Failed to apply plugin [id 'android']
    Gradle version 1.10 is required. Current version is 2.2.1. If using the gradle wrapper, try editing the distributionUrl

    I have tried editing gradle-wrapper.properties file, but Qt seems to overwrite the whole android-build directory every time.

    I have tried to update build tools from Android SDK, but it did not help and have also broken 5.6.3 compilation with the following error:

    fatal error: stdlib.h: No such file or directory

    Qt 5.9.4 compilation of the same code mysteriously works.


  • Qt Champions 2016

    @A1exander_V_Z can you give 5.10.1 a try ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.