2

Here's the error:

    Error:No such property: packageApplicationTask for class:
    com.android.build.gradle.internal.variant.ApkVariantOutputData

Here's my plugin list:

   apply plugin: 'android-sdk-manager'
   apply plugin: 'com.android.application'
   apply plugin: 'com.neenbedankt.android-apt'
   apply plugin: 'hugo'
   apply plugin: 'com.trello.victor'
   apply plugin: 'com.github.triplet.play'
   apply plugin: 'com.mutualmobile.gradle.plugins.dexinfo'
   apply plugin: 'org.moallemi.advanced-build-version'
   apply plugin: 'com.mindera.gradle.slack'
   apply plugin: 'com.google.gms.google-services'
   apply plugin: 'com.github.alexfu.androidautoversion'
   apply plugin: 'net.jokubasdargis.build-timer'
   apply plugin: 'hu.supercluster.paperwork'
   apply plugin: "build-time-tracker"
   apply plugin: 'me.tatarka.retrolambda'
   apply plugin: 'com.getkeepsafe.dexcount'
   apply plugin: "com.lib.logthisannotations"
   apply plugin: 'io.fabric'
   apply plugin: 'com.noveogroup.android.check'
   apply plugin: 'realm-android'
sirvon
  • 2,547
  • 1
  • 31
  • 55

2 Answers2

14

My problem was Jrebel and Android Studio 2.2. I have removed any references to jrebel in my gradle files and now it's ok.

michgauz
  • 214
  • 2
  • 10
0

just try this answer by user thorbear

android {
    applicationVariants.all { variant ->
        variant.outputs.each { output ->
            def outputFile = output.outputFile
            if (outputFile != null && outputFile.name.endsWith('.apk')) {
                def fileName = outputFile.name.replace('.apk', "-${versionName}.apk")
                output.outputFile = new File(outputFile.parent, fileName)
            }
        }
    }
}
Community
  • 1
  • 1
Amila kumara
  • 439
  • 7
  • 12