-
-
Save ksc91u/f167a7d56e0c2646c9c8 to your computer and use it in GitHub Desktop.
#!/bin/bash | |
enable pwd | |
args=("$@") | |
DIR="$(cd "$(dirname "$0")" && pwd)" | |
case "${args[@]}" in | |
*".9.png"*) | |
$DIR/aapt.17 $@ | |
;; | |
*) | |
$DIR/aapt.20 $@ | |
;; | |
esac |
May I ask the same question?
https://gist.github.com/ksc91u/37513796b2cec37bb3c5
See the comments in this gist to find locations to put this file.
- Rename aapt to aapt.20
- Copy aapt from tools version 17 to aapt.17
- Put this gist as aapt chmod +x
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.
how to integrate it in an android project?