- Home /
Android Error building Player: CommandInvokationFailure: Android Asset Packaging Tool failed.
I have follow the tutorial(http://docs.unity3d.com/Manual/android-sdksetup.html) and set up everything correctly. However, when I try to build the project I encounter this error. I have also install the latest JDK and update my unity to the latest version. Anybody know how I can solve this issue?
**Error building Player: CommandInvokationFailure: Android Asset Packaging Tool failed. See the Console for details.
C:\Users\An\Documents\adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\build-tools\21.0.1\aapt.exe package -v -f -F assets.ap_ -A assets stderr[ ] stdout[ ]**
This error can be seen due to several issues.
The console should show a longer error message with detailed information as to why the build failed. Could you please reproduce the issue and see if you get a longer error message in the Unity console
Answer by Gelderson-Alves · Oct 20, 2014 at 06:58 AM
if aapt.exe is missing you can download it from https://code.google.com/p/android-apktool/downloads/list and past the file in tool folder of your Android SDK.
It worked to me. I found it here http://answers.unity3d.com/questions/675074/android-error-building-player-commandinvokationfai.html
Answer by saadali211 · Oct 21, 2017 at 03:39 PM
Here is A New Video On Fixing All AdMob Problems in Unity (in Hindi/Language) YouTube Link https://www.youtube.com/watch?v=JRGd7UG-WdE
Answer by ikhsaniks · Apr 07, 2018 at 06:00 PM
Hi @linan2332 Unity version of 2017 or later are only compatible with SDK 25.2.5 and JDK 1.8.161 (I think). So change your SDK -> Tools with 25.2.5 version. If you don't want to overwrite your tools folder you can rename it to something else. Here is my SDK and JDK you can download and add it to the Unity -> Preferences -> External Build https://drive.google.com/drive/folders/16n3hvR9JfTaKWW0MGNDhHLc6XIg3agM9?usp=sharing
hope it works on you. Insya Allah. Regards, Ikhsan Syahputra.