Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:No such property: zipAlignEnabled for class: com.android.build.gradle.internal.variant.ApplicationVariantData

I am getting this error continuously when I try to build my old project in Android Studio 3.0

enter image description here

Here's my gradle file:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.google.gms:google-services:3.0.0'
        classpath 'com.github.triplet.gradle:play-publisher:1.1.4'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        classpath 'com.google.guava:guava:19.0'
        classpath 'me.tatarka:gradle-retrolambda:3.3.1'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
        flatDir {
            dirs 'libs'
        }
    }
}
like image 468
Sikandar Ali Chishty Avatar asked Oct 28 '17 14:10

Sikandar Ali Chishty


1 Answers

For me the problem was with classpath 'com.github.triplet.gradle:play-publisher:1.1.4'. I upgraded it to com.github.triplet.gradle:play-publisher:1.2.0 and the error went away.

like image 169
ddinchev Avatar answered Nov 19 '22 19:11

ddinchev