Recently, I upgraded my android-SDK to Android M (API 22, MNC Preview). After this, every project reported errors when Eclipse was opened.
The error said: "Error executing aapt. please check aapt is present at ..\sdk\build-tools\23.0.0_rc1\aapt.exe".
After checking this *.exe file, I found that "aapt.exe" of 23.0.0_rc1 is at ..\23.0.0_rc1\bin\aapt.exe not like that of 22.0.1 at ..\22.0.1\aapt.exe. So, the location of aapt.exe is changed, but Eclipse can't realize that.
So, did Android do this on purpose or carelessly? How could I solve this problem in the case of no changing the original file structure?
I use Eclipse as well as Android Studio. So, I want to make sure Android SDK is OK for AS first, then it is Eclipse, So I don't change structure of SDK
Any tips will be appreciated. Thanks in advance.
P.S.:
@Josecash's answer worked like a charm. Here's the solution from that link in english.
It turns out that now the binaries in the build-tools / 23.0.0_rc1 / folder are in a subfolder called bin, so when eclipse will not find them in its new route, the fastest solution is to create a direct link to the binary the folder you are looking eclipse.
In linux:
$ cd / path / to / sdk /build-tools/23.0.0_rc1/
$ ln -s bin/aapt
In Windows: Let the path to the SDK to build-tools \ 23.0.0_rc1 \ bin \ folder Once there click the right mouse button on AAPT -. create direct link, then copy the link to the upper build-tools \ 23.0 folder. 0_rc1 \ and change the name aapt.exe
Then just restart eclipse.
Not only aapt tool is missing in the build tools 23.0.0rc1, Eclipse couldn't find other build tools also.
These tools should be located in $ANDROID_SDK/build-tools/23.0.0_rc1
, but they are moved to $ANDROID_SDK/build-tools/23.0.0_rc1/bin
.
Move all the executable binaries to a separated directory make the directory tree more structural, but the ADT plugin for eclipse didn't update accordingly.
By creating a symbol links for temporary use.
$ cd $ANDROID_SDK/build-tools/23.0.0_rc1
$ for f in bin/*;do ln -s $f .;done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With