Could not find tool "aapt"! You may need to update the Android SDK, including platform tools.

I am developing a mobile application using the trigger.io tool. When launching the application in the form of a plat trigger, it gives an error because the "aapt.exe" tool could not be found. It was suggested to update sroid sroid. I updated android sdk and plat tools, but still displayed the same error. Please suggest to follow up. Any help would be appreciated. Thanks at Advance.

+4
source share
3 answers

got the same problem solving it by changing "platform_version": "v1.4.47" in config.json

+1
source

So, again from what I can say, this is a problem with a python script that calls aapt.

When you look at the script, it only points to aapt, which means that it is looking for the directory, not the aapt.exe file, so the first thing that happens is

1) forge says that it cannot find the aapt directory, so you get the error message "can not find aapt tool"

2) by adding a directory in which you will be denied access, because then the script tries to run all these commands only in the directory (this was the problem I encountered), making the changes below you need to create the directory, just leave it as this but add exe and it should work

After some testing, I found that by adding exe to the pythong script in android_tasks.py, the assembly completed successfully

if you look at line 35 android_tasks.py and change 'appt' to 'appt.exe', it should build for you

that's what seems to me

path.join(sdk, 'build-tools', '*','aapt.exe') 

Hope this helps

0
source

We made changes to fix this problem in our platform version v1.4.49: https://trigger.io/docs/current/api/release_notes.html

0
source

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


All Articles