Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse: please check aapt is present at "..\sdk\build-tools\23.0.0_rc1\aapt.exe"

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.:

  • My OS is Windows 7 and Mac OS X;
  • The version of ADT plugin for Eclipse is 23.0.6, which is up to date by now;
  • Also, there is another error reported by a popup window when Eclipse starts: Error: Error parsing ...\sdk\system-images\android-22\android-wear\armeabi-v7a\devices.xml cvc-complex-type.2.4.d: found invalid contents started with an element of "d:skin". This child element shouldn't be here.
like image 429
SilentKnight Avatar asked Jun 01 '15 02:06

SilentKnight


2 Answers

@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.

like image 169
Reaz Murshed Avatar answered Oct 03 '22 09:10

Reaz Murshed


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
like image 38
alijandro Avatar answered Oct 03 '22 11:10

alijandro