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.
In case you run into the following Gradle build error after updating your Android SDK:
Therefore, I updated the android-sdk-setup script to also symlink
zipalign
. Gradle now finds what it is looking for. Happy building!I got this error before, here's what I have done
Go to
C:\...\Users\your-name\AppData\Local\Android\sdk\build-tools
you have to reach up to build tools. than there you will get list of build tools.Here you have to just copy
Zipalign.exe
from older to newer version .It worked for me. I used it in
BluetoothLegatt
sample code.In Windows, make sure your ANDROID_HOME is pointing to the right folder. For me it was:
I updated it but I forgot to point to the newer SDK folder:
Now I'm sure I'm using the last SDK tools for Android.
Ok, now update the gradle script:
and
I got the answer here: http://tech.sarathdr.com/questions/question/gradle-is-failing-with-new-android-sdk-versio-zipalign-is-missing
It says: New android sdk version (23) does not contain the file zipalign file. You can download the old version of android sdk and copy zipalign file to the tools folder
If you're using Gradle, updating the Gradle plugin from 0.10 to 0.11 worked for me: