Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"zipAlignExe' does not exist." error while running my project on Android Studio

Tags:

android

gradle

I'm getting error below this,

Error:A problem was found with the configuration of task ':project1:zipalignDebug'.
> File 'D:\Program Files\Android Studio\sdk\tools\zipalign.exe' specified for property
'zipAlignExe' does not exist.

I downloaded all packages in sdk, I downloaded twice a packages about zipAlign but it didn't solve my problem.

Please help. Thank you.

like image 424
Emre Alparslan Avatar asked Jul 05 '14 12:07

Emre Alparslan


2 Answers

If you're using Gradle, updating the Gradle plugin from 0.10 to 0.11 worked for me:

buildscript {
    ...

    dependencies {
        ...
        classpath 'com.android.tools.build:gradle:0.11.+'
    }
}
like image 57
Pete Doyle Avatar answered Oct 01 '22 02:10

Pete Doyle


In case you run into the following Gradle build error after updating your Android SDK:

A problem was found with the configuration of task ':MyApp:zipalignRelease'.
File '/home/user/SDKs/android-sdk-linux_x86/tools/zipalign' specified for property 'zipAlignExe' does not exist.

Therefore, I updated the android-sdk-setup script to also symlink zipalign. Gradle now finds what it is looking for. Happy building!

like image 21
JJD Avatar answered Oct 01 '22 02:10

JJD