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

I recently upgraded my Android-SDK to Android M (API 22, MNC Preview) . After that, each project reported errors when opening Eclipse.

Error: "Error while executing aapt. Please check that aapt is present on .. \ sdk \ build-tools \ 23.0.0_rc1 \ aapt.exe . "

After checking this * .exe file, I found that "aapt.exe" 23.0.0_rc1 is located in .. \ 23.0.0_rc1 \ bin \ aapt.exe does not look like 22.0.1 on .. \ 22.0.1 \ aapt.exe . Thus, the location of aapt.exe is changed, but Eclipse cannot understand this.

So, did Android do it intentionally or carelessly? How can I solve this problem if the original file structure is changed?

I am using Eclipse as well as Android Studio. So, I want the Android SDK to be OK for AS in the first place, then this is Eclipse, so I do not change the structure of the SDK

Any advice would be appreciated. Thanks in advance.

PS:

  • My OS is Windows 7 and Mac OS X ;
  • version of the ADT plugin for Eclipse 23.0.6 , which is currently being updated;
  • In addition, an error message appears in a pop-up window when Eclipse starts: Error : error analysis ... \ sdk \ system-images \ android-22 \ android-wear \ armeabi-v7a \ devices.xml cvc-complex-type. 2.4.d: Invalid content started with the "d: skin" element found. This child should not be here.
+6
source share
6 answers
Answer

@Josecash worked like a charm. Here is the solution from this link in English.

It turns out that now the binaries in the build-tools / 23.0.0_rc1 / file are located in a subfolder called bin, so when eclipse does not find them in its new route, the quickest solution is to create a direct link to the binary folder you are looking for eclipse.

In linux:

$ cd / path / to / sdk /build-tools/23.0.0_rc1/ $ ln -s bin/aapt 

On Windows: Let the path to the SDK for creating tools \ 23.0.0_rc1 \ bin \ folder After that, right-click on AAPT -. create a direct link, then copy the link to the top folder build-tools \ 23.0. 0_rc1 \ and change the name aapt.exe

Then just restart eclipse.

+4
source

In the build tools 23.0.0rc1, not only was the aapt tool missing, but Eclipse was unable to find other build tools.

These tools should be located in $ANDROID_SDK/build-tools/23.0.0_rc1 , but they will move to $ANDROID_SDK/build-tools/23.0.0_rc1/bin .

Move all executable binaries to a separate directory so that the directory tree is more structured, but the ADT plugin for eclipse is not updated accordingly.

By creating character references for temporary use.

 $ cd $ANDROID_SDK/build-tools/23.0.0_rc1 $ for f in bin/*;do ln -s $f .;done 
+1
source

you need to copy the full directory "platform-tools" to the sdk directory "** \ adt-bundle-windows-x86-20140702 \ sdk" and then restart eclipse!

0
source

I also ran into the same problem. Looks like 23.0.0_rc1 is not suitable. It does not include aapt.exe file. To solve this problem, I deleted 23rc1 (tool preview channel) using the Android SDK manager. Now I am using the previous build tool.

0
source

To solve this problem - Just copy aapt from \ Android SDK \ build-tools \ 23.0.0_rc1 \ bin and paste it \ Android SDK \ build-tools \ 23.0.0_rc1 \ and rename it to aapt.exe file Restart the eclipse and you need it solve.

0
source

If you are working in Appium and received aapt.exe error not found

Solution just be careful with the version of Android OS correctly mentioned in Capabilities, and also with AutomationName as "Appium".

Example - if you have a 7.1.1 Android OS version, specify

cap.setCapability ("platform name", "Android 7.1.1"); cap.setCapability ("machine-name", "Appium");

0
source

Source: https://habr.com/ru/post/988283/


All Articles