Last active
February 19, 2018 10:21
-
-
Save ksc91u/f167a7d56e0c2646c9c8 to your computer and use it in GitHub Desktop.
aapt malformed 9 patch image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
enable pwd | |
args=("$@") | |
DIR="$(cd "$(dirname "$0")" && pwd)" | |
case "${args[@]}" in | |
*".9.png"*) | |
$DIR/aapt.17 $@ | |
;; | |
*) | |
$DIR/aapt.20 $@ | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java.io.IOException: Cannot run program "C:\Users\ankit\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe": CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.android.builder.png.AaptProcess$Builder.start(AaptProcess.java:167)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:117)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:205)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: CreateProcess error=216, This version of %1 is not compatible with the version of Windows you're running.
I am getting above error, it's really helpful.. if u can solve my problem.