# Android Build Exception !

**URL:** https://forums.fusetools.com/t/android-build-exception/5991
**Category:** Bug Reports
**Created:** [January 7, 2018, 10:51am UTC](https://forums.fusetools.com/t/android-build-exception/5991 "2018-01-07T10:51:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lama226487](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@lama226487](https://forums.fusetools.com/u/lama226487)
#### Post date: [January 7, 2018, 10:51am UTC](https://forums.fusetools.com/t/android-build-exception/5991/1 "2018-01-07T10:51:30Z")

</div>

I am using fuse version 1.5 on Win 10  
I tries to build my app and the following was displayed:  
Building Android app

Exception in thread “png-cruncher\_12” java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at C:\Users\lama2\AppData\Local\Fusetools\Fuse\Android\AndroidSDK\build-tools\23.0.1\aapt.exe can run successfully (some anti-virus may block it) or try setting environment variable SLAVE\_AAPT\_TIMEOUT to a value bigger than 5 seconds  
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:108)  
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:120)  
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:203)  
at java.lang.Thread.run(Thread.java:745)

Note: Some input files use or override a deprecated API.  
Note: Recompile with -Xlint:deprecation for details.

CMake Warning at C:/Users/lama2/AppData/Local/Fusetools/Fuse/Android/AndroidSDK/ndk-bundle/build/cmake/android.toolchain.cmake:63 (message):  
Using custom NDK path (ANDROID\_NDK is set):  
C:/Users/lama2/AppData/Local/Fusetools/Fuse/Android/AndroidSDK/ndk-bundle  
Call Stack (most recent call first):  
C:/Users/lama2/AppData/Local/Fusetools/Fuse/Android/AndroidSDK/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)  
CMakeLists.txt:2 (project)

(9:7)

Build completed in 638.06 seconds

Although the build has been completed but the application crashes when i open it.

---

<div class="post-metadata">

### Author: ![Uldis](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/uldis/32/657_2.png) [@Uldis](https://forums.fusetools.com/u/Uldis)
#### Post date: [January 8, 2018, 11:33am UTC](https://forums.fusetools.com/t/android-build-exception/5991/2 "2018-01-08T11:33:54Z")

</div>

If the application crashes, we need to see the logs from the crash (and not from the build).

Try running `fuse build -tandroid -r` in CMD and see if you get anything useful there. If not, you might need to debug the crash using Android Studio. `fuse build -tandroid -d` opens the compiled project in Android Studio, where you can Run -\> Debug.

---

<div class="post-metadata">

### Author: ![lama226487](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@lama226487](https://forums.fusetools.com/u/lama226487)
#### Post date: [January 11, 2018, 6:45am UTC](https://forums.fusetools.com/t/android-build-exception/5991/3 "2018-01-11T06:45:55Z")

</div>

i tried to use the debug on android studio but it seems like the file needed isn’t found.  
so i took the old-way debug: i commented all of the related code and kept building it with decommenting it block by block (the crash only happens in build versions never a preview)  
it ended up being a crash due to the mapview. i made a very simple app that only has a mapview and it crashed too. i posted a new thread about it: [https://www.fusetools.com/community/forums/bug\_reports/mapview\_crash](https://www.fusetools.com/community/forums/bug_reports/mapview_crash)  
thank you so much.
