- Home /
Error Building Android Player : Win32 Exception
I need to make an AR based real time sensing mobile app(currently on android). I'm trying to use https://www.qualcomm.com/products/vuforia for the unity packages and setting up of the test markers. I'm using the latest Vuforia 4.2 package.
I am running Unity 5.0.2f1 Personal edition, on a MAC with Yosemite, 64 bit machine 2015 model. I have downloaded the latest Android Studio(with the Android SDK) for the MAC and Java SE Development Kit (JDK version 1.8.0_45). The location of the "android SDK" and the "JDK" has been entered in the Unity Player Build Settings.
The Android device is connected in Debugging mode, and is being detected by the computer.
I get the following error everytime I am trying to build for Android:
Error building Player: Win32Exception: ApplicationName='/Users/karandudeja/Library/Android/sdk/tools/aapt', CommandLine='package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/karandudeja/Library/Android/sdk/platforms/android-22/android.jar" -F bin/resources.ap_', CurrentDirectory='Temp/StagingArea'
I am unable to figure, where could I be going wrong. I am a real beginner, started 3 days back. Please help! Please let me know if you need any other details for sorting this issue. Please mail me the help also, if you don't mind : learning2make@gmail.com
Thanks in advance. : )
Answer by Yury-Habets · Jun 02, 2015 at 11:27 AM
There are two possibilities:
you don't have Android build-tools installed
you have build-tools preview for just-announced-Android M which are surprisingly missing aapt.
To check, please open Android SDK Manager ("android" command in $your_sdk_path/tools), install latest stable build tools (v22.0.1 at the moment for me) and remove any RC version (probably 23.0.0_rc1).
Hey Yury
It worked!!!
I can't thank you enough... :D
Working on the application now, and will update you on its status in sometime. Thanks a lot again. Have an excellent day ahead. Someday, I'd like to buy you a beer! (and it won't be virtual :p )