# FATAL ERROR: Build failed for Android

**URL:** <https://forums.fusetools.com/t/fatal-error-build-failed-for-android/5205>\
**Category:** Bug Reports\
**Created:** [March 15, 2016, 11:45am UTC](https://forums.fusetools.com/t/fatal-error-build-failed-for-android/5205 "2016-03-15T11:45:43Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [March 15, 2016, 11:45am UTC](https://forums.fusetools.com/t/fatal-error-build-failed-for-android/5205/1 "2016-03-15T11:45:43Z")

</div>

Experiencing an Android buil issue on a Mac, Fuse 0.10.0.6044 and Fuse 0.11.0.6078. Local preview and iOS preview run fine.

when running `fuse build --target=Android -v`, the following messages are thrown in shell:

```auto
-code-gen:
[mergemanifest] Found modified input file
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Found new input file
     [aapt] Generating resource IDs...
     [aapt] /build/Android/Debug/{removed-app-name}/app/src/main/bin/AndroidManifest.xml:59: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
     [aapt] 

BUILD FAILED
/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:653: The following error occurred while executing this line:
/Library/Application Support/Fusetools/Fuse/Android/AndroidSDK/tools/ant/build.xml:698: null returned: 1

Total time: 2 seconds
(unknown): E0200: Android build failed -- rerun with '-v' for more information
(3,482.33 ms)

Build completed in 59.88 seconds.
    0 Warning(s)
    1 Error(s)

Error Summary
-------------

(unknown): E0200: Android build failed -- rerun with '-v' for more information
FATAL ERROR: Build failed.
fuse: Errors were encountered while building the project

```

Tried reinstalling Google Play Services and Android Support Library, did not help. Tried running `fuse build --clean` and then building, did not help.

Got to a successful build when removed the following from .unoproj file:

```auto
  "Android": {
    "Geo": {
      "ApiKey": "{removed-my-apikey}"
    }
  }

```

Having said that, I’d still need the Android section there as I intend to use a `MapView` and other platform-specific things.

Any suggestions for further debug actions?

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [March 15, 2016, 2:13pm UTC](https://forums.fusetools.com/t/fatal-error-build-failed-for-android/5205/2 "2016-03-15T14:13:33Z")

</div>

Hi!

We have no idea how to attack this by just looking at these logs. Can you please send us a complete test case?

---

<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:** [March 17, 2016, 12:11pm UTC](https://forums.fusetools.com/t/fatal-error-build-failed-for-android/5205/3 "2016-03-17T12:11:03Z")

</div>

Problem solved by including `"Fuse.Maps"` in .unoproj file under `"Packages"`.

Edit: So, basically, two things:

1. Do not put Android/Geo section in your .unoproj without including Fuse.Maps in Packages.
2. Fuse should probably react with a hint to include Fuse.Maps, not with a Fatal build error.
