# Build error during Apk generation for Android

**URL:** https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373
**Category:** Questions about Thunkable X
**Created:** [January 3, 2022, 6:49am UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373 "2022-01-03T06:49:45Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![wfhcodeinstructorpyy](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@wfhcodeinstructorpyy](https://community.thunkable.com/u/wfhcodeinstructorpyy)
#### Post date: [January 3, 2022, 6:49am UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/1 "2022-01-03T06:49:45Z")

</div>

Please see the error below. Could someone please suggest what could be the issue?

**Something went wrong when we tried to build your project**  **CancerCare** \*\*.\*\*

Here are the details:

Error: Command failed: cd /thunkable/androidBuildServer/…/thunkableCompanion/android/; ./gradlew AssembleRelease FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ‘:app:packageRelease’. \> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade \> com.android.ide.common.signing.KeytoolException: Failed to read key AndroidKey from store “/thunkable/thunkableCompanion/android/upload.keystore”: null \* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. \* Get more help at [https://help.gradle.org](https://help.gradle.org/) BUILD FAILED in 51s

Reference ID: c87ef0c5-4137-4e90-8dfe-977c1787b471

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [January 3, 2022, 1:00pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/2 "2022-01-03T13:00:45Z")

</div>

Is this the first time you try to generate an APK for this project?

Is this a project copied from an earlier project which was APK generated?

---

<div class="post-metadata">

### Author: ![mishk](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@mishk](https://community.thunkable.com/u/mishk)
#### Post date: [February 6, 2022, 2:04pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/3 "2022-02-06T14:04:46Z")

</div>

same problem with this messages for more than one project

1 - Error: Command failed: cd /thunkable/androidBuildServer/…/thunkableCompanion/android/; ./gradlew AssembleRelease ⚠ Cannot resolve the path to “@react-native-community/cli” package. ⚠ Cannot resolve the path to “@react-native-community/cli” package. error node\_modules/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js: Call retries were exceeded. FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ‘:app:bundleReleaseJsAndAssets’. \> Process ‘command ‘node’’ finished with non-zero exit value 1 \* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. \* Get more help at [https://help.gradle.org](https://www.google.com/url?q=https%3A%2F%2Fhelp.gradle.org&sa=D&sntz=1&usg=AFQjCNGknE5lTuWSnoJYUxLX1sumNpYsIg) BUILD FAILED in 5m 5s

2 - Error: Command failed: cd /thunkable/androidBuildServer/…/thunkableCompanion/android/; ./gradlew AssembleRelease ⚠ Cannot resolve the path to “@react-native-community/cli” package. ⚠ Cannot resolve the path to “@react-native-community/cli” package. Failed to construct transformer: Error: Call retries were exceeded at ChildProcessWorker.initialize (/thunkable/thunkableCompanion/node\_modules/jest-worker/build/workers/ChildProcessWorker.js:193:21) at ChildProcessWorker.\_onExit (/thunkable/thunkableCompanion/node\_modules/jest-worker/build/workers/ChildProcessWorker.js:274:12) at ChildProcess.emit (events.js:375:28) at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:277:12) { type: ‘WorkerError’ } error Call retries were exceeded. FAILURE: Build failed with an exception. \* What went wrong: Execution failed for task ‘:app:bundleReleaseJsAndAssets’. \> Process ‘command ‘node’’ finished with non-zero exit value 1 \* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. \* Get more help at [https://help.gradle.org](https://www.google.com/url?q=https%3A%2F%2Fhelp.gradle.org&sa=D&sntz=1&usg=AFQjCNGknE5lTuWSnoJYUxLX1sumNpYsIg) BUILD FAILED in 2m 31s

is that from our projects ? or because something in server side ??

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [February 6, 2022, 2:36pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/4 "2022-02-06T14:36:16Z")

</div>

This is strange. Sorry it’s happening and thanks for bringing it up.

Is this occurring for all users and all projects today?

---

<div class="post-metadata">

### Author: ![angus.wong](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@angus.wong](https://community.thunkable.com/u/angus.wong)
#### Post date: [February 7, 2022, 5:44pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/5 "2022-02-07T17:44:26Z")

</div>

I am getting this as well, however when I tried downloading for ISO it seems to work fine. 🥺

I have downloaded it once before maybe I late Jan2022. Fixed some issue this week and now I get this issue while trying to download for Android

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [February 7, 2022, 6:08pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/6 "2022-02-07T18:08:44Z")

</div>

Is this happening today? @angus.wong

---

<div class="post-metadata">

### Author: ![angus.wong](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@angus.wong](https://community.thunkable.com/u/angus.wong)
#### Post date: [February 8, 2022, 12:35pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/7 "2022-02-08T12:35:54Z")

</div>

Strange… It is working now!!! Thanks. 🤪  
However the installed app does not display properly, seems like many pieces are missing 😵

Android:

 ![Screenshot_2022-02-08-20-39-37-935_com.gmail.anguswong1992.aa](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/d/6d548d49a65d109def0c6435d1cc76e913f7ef3e.jpeg)

 ![16443240591993095595513010438580](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f6a49d242d8d2067fa26f511e8e7102dc3f4ba00.jpeg)

Block functions are mostly there but images were all lost

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 8, 2022, 12:45pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/8 "2022-02-08T12:45:27Z")

</div>

You using images as assets in the project. It seems you changed the assets name and made it different from the actual file name.

If you do this, the compiled app will not load the images.

---

<div class="post-metadata">

### Author: ![angus.wong](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@angus.wong](https://community.thunkable.com/u/angus.wong)
#### Post date: [February 8, 2022, 12:48pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/9 "2022-02-08T12:48:32Z")

</div>

but somehow it seems to work fine in ISO (iPad)

 ![16443244581806843587355275913174](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/0/d09d73c88872e098b19b4877fd82881ca968afd3.jpeg)

Very strange 😩😩😩

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [February 8, 2022, 12:48pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/10 "2022-02-08T12:48:45Z")

</div>

> [@muneer](#):
>
> you do this, the compiled app will not load the images.

Truth ⬆ ⬆

> [@angus.wong](#):
>
> installed app does not display properly,

I notice the shadows. We’re working on the fix and hopefully testing it this week.

Where do your icons come from / what file format are they?

Lastly, how are your elements ordered in the tree. If you don’t mind it does seem a bit strange, if you want you can DM me a link to the app and when I’m at my desk I’ll take a look!

---

<div class="post-metadata">

### Author: ![angus.wong](https://avatars.discourse-cdn.com/v4/letter/a/35a633/32.png) [@angus.wong](https://community.thunkable.com/u/angus.wong)
#### Post date: [February 8, 2022, 12:57pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/11 "2022-02-08T12:57:54Z")

</div>

Thanks @muneer @jared for the help and solution.  
I imported most background images and setup from Figma, I added the icons after that, they are .svg

Heres the link to my little app that im working on at the moment:  
[https://x.thunkable.com/copy/a86be6aaae2611deadb79462491e6284](https://x.thunkable.com/copy/a86be6aaae2611deadb79462491e6284)

Anyway! I am still enjoying Thunkable and the building process 🤩 and of course the immense help from the community!! 🤩

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [February 8, 2022, 2:23pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/12 "2022-02-08T14:23:20Z")

</div>

This is what I see. squished by the white. bar at the bottom, b ut everything is there. this was taken on an android device.

Can you make sure you are on the latest version of the companion app?

 ![Screenshot_20220208-092207](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/68b50d56a1aeea02d49f8f775b27c83dd7019cad.jpeg)

[UPDATE] when i downloaded the app, the assets were not present.

I have pinged the team and will follow up here when i have more details.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [February 8, 2022, 4:09pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/13 "2022-02-08T16:09:35Z")

</div>

This (bug) **unexpected behavior** is only present in Android in the APK. iOS is not effected.

This is why the same project will compile correctly in iOS.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [May 9, 2022, 4:09pm UTC](https://community.thunkable.com/t/build-error-during-apk-generation-for-android/1664373/14 "2022-05-09T16:09:47Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
