Android SDK Tools rev 22 update break B4A

tonyp

Member
Licensed User
Longtime User
After upgrading the SDK, the AAPT.EXE cannot be found. Possibly other files are missing also. B4A can no longer compile anything. Any suggestions?
 

john mad doe

Member
Licensed User
Longtime User
Hello

Same problem for me after having updated SDK

the android.jar path is :
E:\PROGRAMMES\Android\android-sdk\platforms\android-17\android.jar

When I want to run my program , I got the error :

Generating R file. Error
Cannot find: E:\PROGRAMMES\Android\android-sdk\tools\..\platform-tools\aapt.exe
Please configure paths (Tools - Configure Paths).


But for me the file aapt.exe is here: E:\PROGRAMMES\Android\android-sdk\build-tools\17.0.0


it's not the same path .

what can we do ?
 
Upvote 0

warwound

Expert
Licensed User
Longtime User
Copy aapt.exe to the location that B4A is expecting to find it?

Martin.

Sent from my GT-I9300 using Tapatalk 2
 
Upvote 0

john mad doe

Member
Licensed User
Longtime User
Not so easy because I don't know the location (see the ...)
Personnaly I prefer to wait for the specialists.

May be the solution is to update the environnement variable PATH



Here is what is in the file "adb_has_moved.txt" :

The adb tool has moved to platform-tools/

If you don't see this directory in your SDK,
launch the SDK and AVD Manager (execute the android tool)
and install "Android SDK Platform-tools"

Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location.
 
Upvote 0

tonyp

Member
Licensed User
Longtime User
OK, after copying
\Android\sdk\build-tools\17.0.0\aapt.exe to
\Android\sdk\platforms\android-17
compilation works again.

But, future updates of the aapt.exe won't end up there. So, a better solution is needed than manually copying the file to another directory. Maybe, a hard link in the \Android\sdk\platforms\android-17 directory will make future updates "automatic". But, hard links may be destroyed depending on how the new file is copied over the old one.
 
Upvote 0
Top