Important: Please read the Qt Code of Conduct -

android apply plugin: ''

  • im trying to add

    apply plugin: ''

    to build.gradle but gradle cant build:

    > Task :preDebugBuild FAILED
    FAILURE: Build failed with an exception.
    * What went wrong:
    Execution failed for task ':preDebugBuild'.
    > 1

    befor that i added

    classpath ''

    to dependencies and built successfully
    i even added google-services.json to android directory

  • @mmjvox , this is my setting in build.gradle that worked well, you can refer it (Qt.5.14.1):

    buildscript {
        repositories {
        dependencies {
            classpath ''
            classpath ''
    apply plugin: ''

  • @Quang-Phu said in android apply plugin: '':

    apply plugin: ''

    im using

    implementation ''

    i changed it to

    implementation ''

    and added

    multiDexEnabled = true

    to "defaultConfig" and my problem solved.

    But i don't know why in android studio there isn't any problem with 28.0.0

  • Today i changed:

    implementation ''


    implementation ''

    without change anything else
    and worked.

Log in to reply