# Unable to compile apks since 1.2

**URL:** <https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004>\
**Category:** Bug Reports\
**Created:** [August 14, 2017, 7:38pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004 "2017-08-14T19:38:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Luke](https://forums.fusetools.com/u/Luke)\
**Post date:** [August 14, 2017, 7:38pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/1 "2017-08-14T19:38:32Z")

</div>

Since upgrading to 1.2.0 release android compilation now fails with repeat errors similar to:

…`/AppData/Local/Fusetools/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabiv7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(): error: undefined reference to 'std::exception::exception()'`

I’ve tried deleting the UnoCore files to force a rebuild, which completes successfully, but projection compilation still fails afterwards with the same errors.

I’ve tried running `fuse install android` again, which succeeds fine.

I’ve also tried updating to the latest adk as that includes the clang toolchain fuse uses.

Is there perhaps a specific version of the android sdk that I need to be using? Or something else I need to change now?

Thanks

---

<div class="post-metadata">

**Author:** ![Bent](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bent/32/157_2.png) [@Bent](https://forums.fusetools.com/u/Bent)\
**Post date:** [August 14, 2017, 7:39pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/2 "2017-08-14T19:39:21Z")

</div>

Did you run `uno clean` too?

---

<div class="post-metadata">

**Author:** ![Luke](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@Luke](https://forums.fusetools.com/u/Luke)\
**Post date:** [August 14, 2017, 7:43pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/3 "2017-08-14T19:43:36Z")

</div>

Yeah, sorry. That didn’t help either.

---

<div class="post-metadata">

**Author:** ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)\
**Post date:** [August 14, 2017, 8:21pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/4 "2017-08-14T20:21:15Z")

</div>

Hi, same here on 1.2. iOS and local preview working ok but Android compilation broken.

Here´s a log:

```auto
08-14 14:49:54.349 15844 15946 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 15946 (Thread-2)
08-14 14:49:54.349 395 395 W : debuggerd: handling request: pid=15844 uid=10208 gid=10208 tid=15946
08-14 14:49:54.437 16034 16034 F DEBUG : pid: 15844, tid: 15946, name: Thread-2 >>> com.morten.SGTest1 <<<
08-14 14:49:55.729 395 395 W : debuggerd: resuming target 15844
08-14 14:49:55.764 556 556 E lowmemorykiller: Error writing /proc/15844/oom_score_adj; errno=22
08-14 14:49:55.765 2793 3088 W ActivityManager: Failed setting process group of 15844 to 1
08-14 14:49:55.802 2793 2807 I ActivityManager: Process com.morten.SGTest1 (pid 15844) has died
08-14 14:49:55.802 2793 2807 D ActivityManager: cleanUpApplicationRecord -- 15844
08-14 14:49:55.836 591 591 I Zygote : Process 15844 exited due to signal (11)
Process com.morten.SGTest1 terminated.

```

---

<div class="post-metadata">

**Author:** ![ganaited](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/ganaited/32/161_2.png) [@ganaited](https://forums.fusetools.com/u/ganaited)\
**Post date:** [August 15, 2017, 8:44am UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/5 "2017-08-15T08:44:48Z")

</div>

Hi,

Same here 😉 Android build fails on macOS:

```auto
* What went wrong:
Execution failed for task ':app:externalNativeBuildRelease'.
> Build command failed.

```

and

```auto
  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(): error: undefined reference to 'std::exception::exception()'
  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(uBase::String const&): error: undefined reference to 'std::exception::exception()'
  /usr/local/share/uno/Packages/UnoCore/1.2.1/prebuilt/Android/lib/armeabi-v7a/libuBase.a(Exception.cpp.o):Exception.cpp:function uBase::Exception::Exception(uBase::String const&, char const*, int): error: undefined reference to 'std::exception::exception()'

```

Thanks,

---

<div class="post-metadata">

**Author:** ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)\
**Post date:** [August 15, 2017, 8:37pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/6 "2017-08-15T20:37:42Z")

</div>

Hi,

I already uploaded the problematic project and OS details to Fuse DropBox. The file is StdException\_project.zip

Thanks

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [August 16, 2017, 9:59am UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/7 "2017-08-16T09:59:38Z")

</div>

The reproduction works for me, thank you very much. I think I’ve identified the problem, and I’m working on getting a fix ready now.

---

<div class="post-metadata">

**Author:** ![Hector\_Lizarraga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/hector_lizarraga/32/434_2.png) [@Hector\_Lizarraga](https://forums.fusetools.com/u/Hector_Lizarraga)\
**Post date:** [August 16, 2017, 1:36pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/8 "2017-08-16T13:36:02Z")

</div>

We uncovered the mistery, well just partially.

The problem was the Stanford Javascript Crypto Library ([http://bitwiseshiftleft.github.com/sjcl/](http://bitwiseshiftleft.github.com/sjcl/)) which we used to encrypt some strings.

Once we removed the reference to it, the project compiled succesfully for Android. Something in 1.2 make them incompatible.

> **[hector.lizarraga@gmail.com](mailto:hector.lizarraga@gmail.com) wrote:**
> 
> Hi, same here on 1.2. iOS and local preview working ok but Android compilation broken.
> 
> Here´s a log:
> 
> ```auto
> 08-14 14:49:54.349 15844 15946 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7 in tid 15946 (Thread-2)
> 08-14 14:49:54.349 395 395 W : debuggerd: handling request: pid=15844 uid=10208 gid=10208 tid=15946
> 08-14 14:49:54.437 16034 16034 F DEBUG : pid: 15844, tid: 15946, name: Thread-2 >>> com.morten.SGTest1 <<<
> 08-14 14:49:55.729 395 395 W : debuggerd: resuming target 15844
> 08-14 14:49:55.764 556 556 E lowmemorykiller: Error writing /proc/15844/oom_score_adj; errno=22
> 08-14 14:49:55.765 2793 3088 W ActivityManager: Failed setting process group of 15844 to 1
> 08-14 14:49:55.802 2793 2807 I ActivityManager: Process com.morten.SGTest1 (pid 15844) has died
> 08-14 14:49:55.802 2793 2807 D ActivityManager: cleanUpApplicationRecord -- 15844
> 08-14 14:49:55.836 591 591 I Zygote : Process 15844 exited due to signal (11)
> Process com.morten.SGTest1 terminated.
> 
> ```

---

<div class="post-metadata">

**Author:** ![kusma](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kusma/32/595_2.png) [@kusma](https://forums.fusetools.com/u/kusma)\
**Post date:** [August 16, 2017, 1:42pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/9 "2017-08-16T13:42:36Z")

</div>

We believe we have found and fixed the issue. A new patch-release (Fuse 1.2.1) is on its way, including this.

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [August 16, 2017, 1:48pm UTC](https://forums.fusetools.com/t/unable-to-compile-apks-since-1-2/5004/10 "2017-08-16T13:48:20Z")

</div>

Fuse 1.2.1 is now released, it fixes this issue. Get it at [https://www.fusetools.com/downloads/](https://www.fusetools.com/downloads/) as usual! 🙂

Sorry about the inconvenience.
