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. androiddeployqt with --gradle errors out as "Failed to apply plugin [id 'myappid']

androiddeployqt with --gradle errors out as "Failed to apply plugin [id 'myappid']

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 568 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.
  • N Offline
    N Offline
    Nelson_Piquet
    wrote on last edited by
    #1

    My QtApp for android is supposed to command-line build with gradle on an osx machine. Based on a previous help from this forum, I using --gradle so that the build is done using gradle instead of ant as seen below command I am using in my script.

    androiddeployqt --sign MyKeystore --storepass MyPassword --output android-build --gradle --input $PWD/MyQtApp/android-libMyQtApp.so-deployment-settings.json

    After resolving many issues with proxy & connectivity, I am finally getting an error as below when I run my script:

      A problem occurred evaluating root project 'android-build'.
        > Failed to apply plugin [id 'com.mycompany.myappid']
        > Plugin with id 'com.mycompany.myappid' not found.
    

    How can I fix this issue ?

    My build.gradle looks like below:

    buildscript {
    repositories {
    maven {
    url "http://repo1.maven.org/maven2"
    }
    }
    dependencies {
    classpath 'com.android.tools.build:gradle:2.1.3'
    }
    }

    apply plugin: 'com.mycompany.myappid'

    android {
    compileSdkVersion 23
    buildToolsVersion "21.1.2"

    def versionPropsFile = file('version.properties')
    
    if (versionPropsFile.canRead()) {
        def Properties versionProps = new Properties()
    
        versionProps.load(new FileInputStream(versionPropsFile))
    
        def code = versionProps['VERSION_CODE'].toInteger() + 1
    
        versionProps['VERSION_CODE']=code.toString()
        versionProps.store(versionPropsFile.newWriter(), null)
    
        defaultConfig {
            versionCode code
            versionName "1.1"
            minSdkVersion 14
            targetSdkVersion 18
        }
    }
    else {
        throw new GradleException("Could not read version.properties!")
    }
    

    }

    1 Reply Last reply
    0

    • Login

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